diff --git a/Network.cpp b/Network.cpp index b5ec1a9..19c59be 100644 --- a/Network.cpp +++ b/Network.cpp @@ -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); diff --git a/networkDevices/WifiDevice.cpp b/networkDevices/WifiDevice.cpp index 1f8b042..0dc14ef 100644 --- a/networkDevices/WifiDevice.cpp +++ b/networkDevices/WifiDevice.cpp @@ -63,8 +63,6 @@ bool WifiDevice::isConnected() bool WifiDevice::reconnect() { - vTaskDelay( 1000 / portTICK_PERIOD_MS); - return isConnected(); }