Browse Source

Allow saving heartbeat settings from web

sensors
Max Prokhorov 5 years ago
parent
commit
68c10a4334
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      code/espurna/mqtt.ino

+ 3
- 1
code/espurna/mqtt.ino View File

@ -316,7 +316,9 @@ unsigned long _mqttNextMessageId() {
#if WEB_SUPPORT
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) {


Loading…
Cancel
Save