clear wifi fallback on mqtt reset

This commit is contained in:
technyon
2023-02-19 17:03:16 +01:00
parent 41861f7149
commit 2b7136331b
3 changed files with 8 additions and 0 deletions

View File

@@ -93,6 +93,7 @@ void NetworkLock::onMqttDataReceived(const char* topic, byte* payload, const uns
if(comparePrefixedPath(topic, mqtt_topic_reset) && strcmp(value, "1") == 0)
{
Log->println(F("Restart requested via MQTT."));
_network->clearWifiFallback();
delay(200);
restartEsp(RestartReason::RequestedViaMqtt);
}