File tree Expand file tree Collapse file tree 2 files changed +16
-14
lines changed Expand file tree Collapse file tree 2 files changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -504,7 +504,7 @@ build_flags =
504504 -DDEBUG_RP2040_CORE
505505 -DDEBUG_RP2040_WIFI
506506 -DNDEBUG
507- -DLWIP_DEBUG
507+ -DLWIP_DEBUG =1
508508 -DDEBUG_RP2040_PORT =Serial1
509509 -DDEBUG_RP2040_UART_1
510510 -DDEBUG_RP2040_UART =1
Original file line number Diff line number Diff line change @@ -185,19 +185,21 @@ class ws_networking_pico : public Wippersnapper {
185185
186186 // User-set network not found, print scan results to serial console
187187 WS_DEBUG_PRINTLN (" ERROR: Your requested WiFi network was not found!" );
188- WS_DEBUG_PRINT (" WipperSnapper found these WiFi networks" );
189- if (n > WS_MAX_SORTED_NETWORKS) {
190- WS_DEBUG_PRINT (" (only first " );
191- WS_DEBUG_PRINT (WS_MAX_SORTED_NETWORKS);
192- WS_DEBUG_PRINTLN (" used):" );
193- } else {
194- WS_DEBUG_PRINTLN (" :" );
195- }
196- for (int i = 0 ; i < n; ++i) {
197- WS_DEBUG_PRINT (networks[i].ssid );
198- WS_DEBUG_PRINT (" " );
199- WS_DEBUG_PRINT (networks[i].rssi );
200- WS_DEBUG_PRINTLN (" dB" );
188+ WS_DEBUG_PRINTLN (" WipperSnapper found these WiFi networks:" );
189+ for (uint8_t i = 0 ; i < n; ++i) {
190+ WS_DEBUG_PRINT (WiFi.SSID (i));
191+ WS_DEBUG_PRINT (" (" );
192+ uint8_t BSSID[WL_MAC_ADDR_LENGTH];
193+ WiFi.BSSID (i, BSSID);
194+ for (int m = 0 ; m < WL_MAC_ADDR_LENGTH; ++m) {
195+ if (m != 0 ) WS_DEBUG_PRINT (" :" );
196+ WS_DEBUG_PRINTHEX (BSSID[m]);
197+ }
198+ WS_DEBUG_PRINT (" ) " );
199+ WS_DEBUG_PRINT (WiFi.RSSI (i));
200+ WS_DEBUG_PRINT (" dB (ch" );
201+ WS_DEBUG_PRINT (WiFi.channel (i))
202+ WS_DEBUG_PRINTLN (" )" );
201203 }
202204
203205 return false ;
You can’t perform that action at this time.
0 commit comments