mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-04 03:31:42 +02:00
fixed Wifi scan during first configuration (client connected to AP of Ahoy) #611
This commit is contained in:
parent
6721c8bbc1
commit
f8d4b4f5ae
3 changed files with 18 additions and 13 deletions
|
@ -600,10 +600,8 @@ class RestApi {
|
|||
}
|
||||
|
||||
bool setSetup(JsonObject jsonIn, JsonObject jsonOut) {
|
||||
if(F("scan_wifi") == jsonIn[F("cmd")]) {
|
||||
DPRINTLN(DBG_INFO, F("rqst scan"));
|
||||
if(F("scan_wifi") == jsonIn[F("cmd")])
|
||||
mApp->scanAvailNetworks();
|
||||
}
|
||||
else if(F("set_time") == jsonIn[F("cmd")])
|
||||
mApp->setTimestamp(jsonIn[F("val")]);
|
||||
else if(F("sync_ntp") == jsonIn[F("cmd")])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue