Scan for nearby Wi-Fi networks using the nRF7002-DK.

We are using SDK v2.6.1 for our application and would like to search for nearby Wi-Fi networks using the nRF7002-DK.

Could you please assist us with this? If any reference code is available, we would greatly appreciate it.

Parents
  • Hi

    Ah, okay. Sorry about the misunderstanding. Yes, this is handled in the wifi_mgmt_event_handler() and it will return the scan_result or scan_done event depending on the callback. I guess you can change it to always return the scan results instead of the "DONE" message if you'd like, or to add results to the handle_wifi_scan_done() function.

    Best regards,

    Simon

  • Hi,

    Thanks for your support,

    After of this i have got below output,still i have got the ssid only once,

    Starting nrf7002dk_nrf5340_cpuapp with CPU frequency: 128 MHz
    Scan requested
    Num | SSID (len) | Chan | RSSI | Security | BSSID
    1 | TG 2 | 1 | -46 | WPA2-PSK | F4:92:BF:51:8F:54
    2 | TG_Guest 8 | 1 | -47 | WPA2-PSK | FA:92:BF:51:8F:54
    3 | 0 | 0 | 0 | OPEN |
    Scan request done
    Scan requested
    Num | SSID (len) | Chan | RSSI | Security | BSSID
    1 | 0 | 0 | 0 | OPEN |
    Scan request done
    Scan requested
    Num | SSID (len) | Chan | RSSI | Security | BSSID
    1 | 0 | 0 | 0 | OPEN |
    Scan request done
    Scan requested
    Num | SSID (len) | Chan | RSSI | Security | BSSID
    1 | 0 | 0 | 0 | OPEN |
    Scan request done
    Scan requested
    Num | SSID (len) | Chan | RSSI | Security | BSSID
    1 | 0 | 0 | 0 | OPEN |
    Scan request done
    Scan requested
    Num | SSID (len) | Chan | RSSI | Security | BSSID
    1 | 0 | 0 | 0 | OPEN |

Reply
  • Hi,

    Thanks for your support,

    After of this i have got below output,still i have got the ssid only once,

    Starting nrf7002dk_nrf5340_cpuapp with CPU frequency: 128 MHz
    Scan requested
    Num | SSID (len) | Chan | RSSI | Security | BSSID
    1 | TG 2 | 1 | -46 | WPA2-PSK | F4:92:BF:51:8F:54
    2 | TG_Guest 8 | 1 | -47 | WPA2-PSK | FA:92:BF:51:8F:54
    3 | 0 | 0 | 0 | OPEN |
    Scan request done
    Scan requested
    Num | SSID (len) | Chan | RSSI | Security | BSSID
    1 | 0 | 0 | 0 | OPEN |
    Scan request done
    Scan requested
    Num | SSID (len) | Chan | RSSI | Security | BSSID
    1 | 0 | 0 | 0 | OPEN |
    Scan request done
    Scan requested
    Num | SSID (len) | Chan | RSSI | Security | BSSID
    1 | 0 | 0 | 0 | OPEN |
    Scan request done
    Scan requested
    Num | SSID (len) | Chan | RSSI | Security | BSSID
    1 | 0 | 0 | 0 | OPEN |
    Scan request done
    Scan requested
    Num | SSID (len) | Chan | RSSI | Security | BSSID
    1 | 0 | 0 | 0 | OPEN |

Children
No Data
Related