mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 06:32:19 +03:00
28 lines
402 B
C++
28 lines
402 B
C++
#pragma once
|
|
#include "Global.h"
|
|
|
|
class SendJson;
|
|
|
|
class SendJson {
|
|
public:
|
|
SendJson();
|
|
~SendJson();
|
|
|
|
void sendFile(String path, uint8_t num);
|
|
|
|
void loop();
|
|
|
|
void sendWs(String& jsonArrayElement);
|
|
|
|
void sendMqtt(String& jsonArrayElement);
|
|
|
|
uint8_t _num;
|
|
|
|
private:
|
|
File file;
|
|
String _path;
|
|
};
|
|
|
|
extern SendJson* sendConfigJson;
|
|
extern SendJson* sendWigdetsJson;
|