mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 06:32:19 +03:00
30 lines
469 B
C++
30 lines
469 B
C++
#pragma once
|
|
#include "Global.h"
|
|
#include "classes/QueueFromStruct.h"
|
|
|
|
class SendJson;
|
|
|
|
class SendJson {
|
|
public:
|
|
SendJson();
|
|
~SendJson();
|
|
|
|
void addFileToQueue(String path, uint8_t num);
|
|
|
|
void loop();
|
|
|
|
void sendWs(String& jsonArrayElement);
|
|
|
|
void sendMqtt(String& jsonArrayElement);
|
|
|
|
QueueItems myItem;
|
|
|
|
private:
|
|
File file;
|
|
String _path;
|
|
uint8_t _num;
|
|
bool sendingInProgress = false;
|
|
};
|
|
|
|
extern SendJson* sendJsonFiles;
|