mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 06:32:19 +03:00
переименования и прочее
This commit is contained in:
@@ -18,17 +18,13 @@ void mqttSubscribe();
|
||||
boolean publish(const String& topic, const String& data);
|
||||
boolean publishData(const String& topic, const String& data);
|
||||
boolean publishChartMqtt(const String& topic, const String& data);
|
||||
boolean publishControl(String id, String topic, String state);
|
||||
boolean publishJsonMqtt(const String& topic, const String& json);
|
||||
boolean publishStatusMqtt(const String& topic, const String& data);
|
||||
boolean publishEvent(const String& topic, const String& data);
|
||||
boolean publishInfo(const String& topic, const String& data);
|
||||
boolean publishAnyJsonKeyMqtt(const String& topic, const String& key, const String& data);
|
||||
|
||||
bool publishChartFileToMqtt(String path, String id, int maxCount);
|
||||
|
||||
void publishWidgets();
|
||||
void publishMainWidgetsValues();
|
||||
void publishSubWidgetsValues();
|
||||
|
||||
void mqttCallback(char* topic, uint8_t* payload, size_t length);
|
||||
void handleMqttStatus(bool send);
|
||||
|
||||
@@ -14,7 +14,7 @@ extern void hexdump(const void* mem, uint32_t len, uint8_t cols);
|
||||
#endif
|
||||
|
||||
void publishStatusWs(const String& topic, const String& data);
|
||||
void publishChartWs(int num, String& path);
|
||||
void publishJsonWs(const String& topic, String& json);
|
||||
void periodicWsSend();
|
||||
|
||||
void sendFileToWsByFrames(const String& filename, const String& header, const String& json, int client_id, size_t frameSize);
|
||||
|
||||
@@ -30,7 +30,6 @@ class IoTItem {
|
||||
bool isGlobal();
|
||||
|
||||
void sendSubWidgetsValues(String& id, String& json);
|
||||
virtual void onMqttWsAppConnectEvent();
|
||||
|
||||
void setInterval(long interval);
|
||||
void setIntFromNet(int interval);
|
||||
@@ -52,11 +51,12 @@ class IoTItem {
|
||||
String getRoundValue();
|
||||
void getNetEvent(String& event);
|
||||
|
||||
// хуки для системных событий
|
||||
// хуки для системных событий (должны начинаться с "on")
|
||||
virtual void onRegEvent(IoTItem* item);
|
||||
virtual void onMqttRecive(String& topic, String& msg);
|
||||
virtual void onMqttWsAppConnectEvent();
|
||||
|
||||
//методы для графиков
|
||||
//методы для графиков (будет упрощено)
|
||||
virtual void publishValue();
|
||||
virtual void clearValue();
|
||||
virtual void setPublishDestination(int type, int wsNum = -1);
|
||||
|
||||
Reference in New Issue
Block a user