|
@ -316,7 +316,9 @@ unsigned long _mqttNextMessageId() { |
|
|
#if WEB_SUPPORT
|
|
|
#if WEB_SUPPORT
|
|
|
|
|
|
|
|
|
bool _mqttWebSocketOnReceive(const char * key, JsonVariant& value) { |
|
|
bool _mqttWebSocketOnReceive(const char * key, JsonVariant& value) { |
|
|
return (strncmp(key, "mqtt", 3) == 0); |
|
|
|
|
|
|
|
|
if (strncmp(key, "mqtt", 3) == 0) return true; |
|
|
|
|
|
if (strncmp(key, "hb", 2) == 0) return true; |
|
|
|
|
|
return false; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void _mqttWebSocketOnSend(JsonObject& root) { |
|
|
void _mqttWebSocketOnSend(JsonObject& root) { |
|
|