mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-30 03:49:13 +03:00
добавил наследника для класса отправки в сокеты
This commit is contained in:
23
include/сlasses/sendJson.h
Normal file
23
include/сlasses/sendJson.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
#include "Global.h"
|
||||
#include "сlasses/sendJsonWs.h"
|
||||
|
||||
class SendJson;
|
||||
|
||||
class SendJson : SendJsonWs {
|
||||
public:
|
||||
SendJson();
|
||||
~SendJson();
|
||||
|
||||
void sendFile(String path, uint8_t num);
|
||||
|
||||
void loop();
|
||||
|
||||
uint8_t _num;
|
||||
|
||||
private:
|
||||
File file;
|
||||
String _path;
|
||||
};
|
||||
|
||||
extern SendJson* mySendJson;
|
||||
12
include/сlasses/sendJsonWs.h
Normal file
12
include/сlasses/sendJsonWs.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#pragma once
|
||||
#include "Global.h"
|
||||
|
||||
class SendJsonWs;
|
||||
|
||||
class SendJsonWs {
|
||||
public:
|
||||
SendJsonWs();
|
||||
~SendJsonWs();
|
||||
|
||||
void send(String& jsonArrayElement, uint8_t& _num);
|
||||
};
|
||||
Reference in New Issue
Block a user