mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
не рабочая версия!
This commit is contained in:
@@ -70,4 +70,12 @@ enum UpdateStates { NOT_STARTED,
|
||||
UPDATE_BUILD_COMPLETED,
|
||||
UPDATE_BUILD_FAILED,
|
||||
PATH_ERROR
|
||||
};
|
||||
};
|
||||
|
||||
enum distination {
|
||||
TO_MQTT,
|
||||
TO_WS,
|
||||
TO_MQTT_WS,
|
||||
};
|
||||
|
||||
#define WS_BROADCAST -1
|
||||
@@ -13,9 +13,9 @@ extern void hexdump(const void* mem, uint32_t len, uint8_t cols);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
void sendFileToWs(const char* filename, uint8_t num, size_t frameSize);
|
||||
void sendFileToWs(String filename, int num, size_t frameSize);
|
||||
void publishStatusWs(const String& topic, const String& data);
|
||||
void publishChartWs(int num, String& json);
|
||||
void publishChartWs(int num, String& path);
|
||||
void periodicWsSend();
|
||||
void sendStringToWs(const String& msg, uint8_t num, String name);
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ class IoTItem {
|
||||
//методы для графиков
|
||||
virtual void publishValue();
|
||||
virtual void clearValue();
|
||||
virtual void setPublishDestination(int type, int num);
|
||||
virtual void setPublishDestination(int type, int wsNum = -1);
|
||||
virtual void clearHistory();
|
||||
virtual void setTodayDate();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user