I have a project that I am working on which is a pan/tilt to focus on the best rssi.
I started a new topic hoping to gain a different insight.
Cloud Disconnected
I just want to be able to scan for the best RSSI based on the SSID and without a password as the password changes daily.
Idea
Roll up to a location where I now the SSID, and power on the Photon2 to get the best RSSI to that SSID.
Fully deployed to the location and now ready to get the password for the SSID.
Disconnect or use a Y-splitter from theP2 and plug my router into the antenna.
My code works great for the pan/tilt if I know the SSID and Password.
Looking for a way to go it without knowing the password.
Thanks
D
That's what WiFi.scan() does. It returns a list of SSIDs and RSSIs for networks in range. Just ignore the ones you don't care about. Scanning will take longer, only because you need to scan for long enough to get a response.
There won't be any faster way to do it, because if you don't connect to Wi-Fi, there's no way to get the RSSI faster without waiting for it to broadcast, which is a scan.
1 Like
@rickkas7 . I understand what you are saying about WiFi.scan() as it will scan for every SSID and then return the list
.
But I want to try to find a way for the servo's to lock onto the best RSSI for a SSID that I am not connected to.
Scan for a specific SSID that I know but that I am not connected to. I know the SSID but I do not know the password and I am not connected to that SSID. Auto RSSI for the best signal strength.
Dave
Yes but you can't connect to a specific SSID to request the RSSI if you don't have the authentication credentials. That's how WiFi works, not a Particle limitation.
You can, however, WiFi.scan() to find all of the APs nearby. They broadcast their SSID, BSSID, and RSSI periodically.
The catch is that moving the servos will take much longer because at each location you'll need to do a WiFi.scan and do it long enough for the AP you want to broadcast. You then look through the whole list, find the SSID and RSSI you want, move the servos, and scan again.
That's the only way to do it.
1 Like
Thank you.
I think that this project will be put to bed.