Update src.ino

This commit is contained in:
Gregg 2023-11-04 13:22:12 -05:00
parent 1194bd27f6
commit 6f19141a49
1 changed files with 2 additions and 1 deletions

View File

@ -74,7 +74,8 @@ void setup() {
// homeSpan.enableOTA();
homeSpan.setWifiCallback(wifiCB);
homeSpan.setWifiCallbackAll(wifiCB_ALL).setVerboseWifiReconnect(true).setRebootCallback(rebootCB);
homeSpan.setWifiCallbackAll(wifiCB_ALL).setVerboseWifiReconnect(true);
homeSpan.setRebootCallback( [](uint8_t c) {if(c==3) homeSpan.processSerialCommand("X");} );
new SpanUserCommand('D', " - disconnect WiFi", [](const char *buf){WiFi.disconnect();});