mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 06:32:19 +03:00
асинхронный скан сети по запросу веба
This commit is contained in:
@@ -177,8 +177,15 @@ void webSocketEvent(uint8_t num, WStype_t type, uint8_t* payload, size_t length)
|
||||
jsonReadArray(settingsFlashJson, "routerssid", jArray);
|
||||
#ifdef ESP8266
|
||||
RouterFind(jArray);
|
||||
#endif
|
||||
sendStringToWs("ssidli", ssidListHeapJson, num);
|
||||
#else
|
||||
//String ssidScan = "{Scaning...}";
|
||||
ssidListHeapJson = "{}";
|
||||
jsonWriteStr_(ssidListHeapJson, "0", "Scaning...");
|
||||
sendStringToWs("ssidli", ssidListHeapJson, num);
|
||||
ScanAsync();
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------//
|
||||
|
||||
Reference in New Issue
Block a user