ignore ack and unknown_action for lock action

This commit is contained in:
technyon
2022-05-15 09:21:43 +02:00
parent 65f9999b46
commit 9e9a4d0943
2 changed files with 1 additions and 3 deletions

View File

@@ -218,7 +218,7 @@ void Network::onMqttDataReceived(char *&topic, byte *&payload, unsigned int &len
if(comparePrefixedPath(topic, mqtt_topic_lock_action))
{
if(strcmp(value, "") == 0) return;
if(strcmp(value, "") == 0 || strcmp(value, "ack") == 0 || strcmp(value, "unknown_action") == 0) return;
Serial.print(F("Lock action received: "));
Serial.println(value);