mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 18:56:38 +00:00
Fix WifiScan JSON Response
This commit is contained in:
parent
f514d1702d
commit
058f9ecea9
@ -127,8 +127,9 @@ void CmndWifiScan(void)
|
|||||||
delay(0);
|
delay(0);
|
||||||
|
|
||||||
char stemp1[20];
|
char stemp1[20];
|
||||||
|
ResponseAppend_P(PSTR("{"));
|
||||||
for (uint32_t i = 0; i < WiFi.scanComplete(); i++) {
|
for (uint32_t i = 0; i < WiFi.scanComplete(); i++) {
|
||||||
ResponseAppend_P(PSTR("{\"" D_STATUS5_NETWORK "%d\":{\"" D_SSID "\":\"%s\", \"" D_BSSID "\":\"%s\", \"" D_CHANNEL
|
ResponseAppend_P(PSTR("\"" D_STATUS5_NETWORK "%d\":{\"" D_SSID "\":\"%s\", \"" D_BSSID "\":\"%s\", \"" D_CHANNEL
|
||||||
"\":\"%d\", \"" D_JSON_SIGNAL "\":\"%d\", \"" D_RSSI "\":\"%d\", \"" D_JSON_ENCRYPTION "\":\"%s\"}"),
|
"\":\"%d\", \"" D_JSON_SIGNAL "\":\"%d\", \"" D_RSSI "\":\"%d\", \"" D_JSON_ENCRYPTION "\":\"%s\"}"),
|
||||||
i+1,
|
i+1,
|
||||||
WiFi.SSID(indexes[i]).c_str(),
|
WiFi.SSID(indexes[i]).c_str(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user