This commit is contained in:
Theo Arends 2022-08-07 15:55:44 +02:00
parent fc86a63417
commit 00012c7893
2 changed files with 0 additions and 4 deletions

View File

@ -126,7 +126,6 @@ void CmndWifiScan(void)
} }
delay(0); delay(0);
char stemp1[20];
ResponseAppend_P(PSTR("{")); 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
@ -137,7 +136,6 @@ void CmndWifiScan(void)
WiFi.channel(indexes[i]), WiFi.channel(indexes[i]),
WiFi.RSSI(indexes[i]), WiFi.RSSI(indexes[i]),
WifiGetRssiAsQuality(WiFi.RSSI(indexes[i])), WifiGetRssiAsQuality(WiFi.RSSI(indexes[i])),
// GetTextIndexed(stemp1, sizeof(stemp1), WiFi.encryptionType(indexes[i]), kWifiEncryptionTypes));
WifiEncryptionType(indexes[i]).c_str()); WifiEncryptionType(indexes[i]).c_str());
if ( ResponseSize() < ResponseLength() + 300 ) { break; } if ( ResponseSize() < ResponseLength() + 300 ) { break; }
if ( i < WiFi.scanComplete() -1 ) { ResponseAppend_P(PSTR(",")); } if ( i < WiFi.scanComplete() -1 ) { ResponseAppend_P(PSTR(",")); }

View File

@ -402,7 +402,6 @@ void WifiBeginAfterScan(void)
delay(0); delay(0);
// Publish the list // Publish the list
char stemp1[20];
uint32_t end_item = ( wifi_scan_result > initial_item + 10 ) ? initial_item + 10 : wifi_scan_result; uint32_t end_item = ( wifi_scan_result > initial_item + 10 ) ? initial_item + 10 : wifi_scan_result;
for (uint32_t i = initial_item; i < end_item; i++) { for (uint32_t i = initial_item; i < end_item; i++) {
Response_P(PSTR("{\"" D_CMND_WIFISCAN "\":{\"" D_STATUS5_NETWORK "%d\":{\"" D_SSID "\":\"%s\",\"" D_BSSID "\":\"%s\",\"" D_CHANNEL Response_P(PSTR("{\"" D_CMND_WIFISCAN "\":{\"" D_STATUS5_NETWORK "%d\":{\"" D_SSID "\":\"%s\",\"" D_BSSID "\":\"%s\",\"" D_CHANNEL
@ -413,7 +412,6 @@ void WifiBeginAfterScan(void)
WiFi.channel(indexes[i]), WiFi.channel(indexes[i]),
WiFi.RSSI(indexes[i]), WiFi.RSSI(indexes[i]),
WifiGetRssiAsQuality(WiFi.RSSI(indexes[i])), WifiGetRssiAsQuality(WiFi.RSSI(indexes[i])),
// GetTextIndexed(stemp1, sizeof(stemp1), WiFi.encryptionType(indexes[i]), kWifiEncryptionTypes));
WifiEncryptionType(indexes[i]).c_str()); WifiEncryptionType(indexes[i]).c_str());
MqttPublishPrefixTopicRulesProcess_P(RESULT_OR_STAT, PSTR(D_CMND_WIFISCAN)); MqttPublishPrefixTopicRulesProcess_P(RESULT_OR_STAT, PSTR(D_CMND_WIFISCAN));
} }