добавил очередь отправки файлов в сокеты

This commit is contained in:
Dmitry Borisenko
2022-01-19 22:54:33 +01:00
parent 003c130eef
commit 221ad5f5d4
14 changed files with 66 additions and 30 deletions

View File

@@ -1,5 +1,6 @@
#pragma once
#include "Global.h"
#include "classes/QueueFromStruct.h"
class SendJson;
@@ -8,7 +9,7 @@ class SendJson {
SendJson();
~SendJson();
void sendFile(String path, uint8_t num);
void addFileToQueue(String path, uint8_t num);
void loop();
@@ -16,12 +17,13 @@ class SendJson {
void sendMqtt(String& jsonArrayElement);
uint8_t _num;
QueueItems myItem;
private:
File file;
String _path;
uint8_t _num;
bool sendingInProgress = false;
};
extern SendJson* sendConfigJson;
extern SendJson* sendWigdetsJson;
extern SendJson* sendJsonFiles;