Could you please be more specific with the issue?
I've just tested the ScanNetworks example in the Arduino IDE and I am able to scan all the networks available while Edison isn't connected to any of them.
I want write a program to scan the MAC addresses of the WIFI routers.
ScanNetworks works perfectly, but it doesn't read MAC addresses (BSSID).
On this page, Arduino - WiFiBSSID, we can see that the BSSID of the router is available only if the Edison is connected to this network.
I hope to be clear this time, sorry for my poor english :s
I do understand now.
I will check the WiFi library to see if I'm able to find a way to check BSSID without the need of connecting it to the router. I will post my results as soon as possible.
I didn't find a way to check the MAC address of the networks available using the WiFi library for Arduino IDE. However, I was able to check them using the Linux command iwlist. You can use the following command to check the statistics of the networks around:
iwlist wlan0 scan
I wrote a Python script to scan the MAC address of the networks available. It uses the iwlist command, but it only shows the SSID and the MAC. You might find it useful. You can check the script here: makers-examples/ScanMAC.py at master · MakersTeam/makers-examples · GitHub
Let me know if it works for you.
It works perfectly for me. It's exactly what I need!
I will try to use it in a program in C now.
Thank you very much!