diff --git a/code/espurna/mqtt.ino b/code/espurna/mqtt.ino index 4c8f3e56..c44c36b0 100644 --- a/code/espurna/mqtt.ino +++ b/code/espurna/mqtt.ino @@ -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) {