Set wifi via mqtt (#653)

This commit is contained in:
Darrell 2022-09-06 11:39:56 -04:00 committed by GitHub
parent e71963d439
commit 6ed36264f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -303,6 +303,8 @@ void onMqttMessage(char *topic, char *payload, AsyncMqttClientMessageProperties
bool changed = false;
if (command == "restart")
ESP.restart();
else if (command == "wifi-ssid" || command == "wifi-password")
spurt("/" + command, pay);
else if (GUI::Command(command, pay))
;
else if (Motion::Command(command, pay))