Add includes

This commit is contained in:
fvanroie 2021-09-17 16:36:03 +02:00
parent 74f1bccc9d
commit 7cb4ea601d
2 changed files with 8 additions and 0 deletions

View File

@ -2,6 +2,8 @@
For full license information read the LICENSE file in the project folder */
#include <time.h>
#include <sys/time.h>
#include "StreamUtils.h" // For ReadBufferingStream
//#include "ArduinoLog.h"
#include "hasplib.h"
@ -653,6 +655,8 @@ void dispatch_parse_jsonl(const char*, const char* payload, uint8_t source)
void dispatch_exec(const char*, const char* payload, uint8_t source)
{
#if ARDUINO
#if HASP_USE_SPIFFS > 0 || HASP_USE_LITTLEFS > 0
if(!HASP_FS.exists(payload)) {
LOG_WARNING(TAG_MSGR, F(D_FILE_NOT_FOUND ": %s"), payload);
return;
@ -693,6 +697,9 @@ void dispatch_exec(const char*, const char* payload, uint8_t source)
cmdfile.close();
LOG_INFO(TAG_MSGR, F(D_FILE_LOADED), payload);
#else
LOG_INFO(TAG_MSGR, F(D_FILE_LOAD_FAILED), payload);
#endif
#else
char path[strlen(payload) + 4];
path[0] = '.';

View File

@ -3,6 +3,7 @@
#include "hasplib.h"
#include <fstream>
#include "StreamUtils.h" // For EEPromStream
namespace hasp {