porcej / njord

A buoy to augment a GNSS data stream based on known Wifi AP locations.
MIT License
0 stars 0 forks source link

Do we have to search by SSID, and then BSSID? #9

Open timbellomo opened 5 months ago

timbellomo commented 5 months ago

Sometimes, the SSID name updates, and if our config doesn't match, we miss the hit. Conversely, the BSSIDs don't change.

Not critical, but a curiosity.

porcej commented 5 months ago

The SSID is used in the key for the access points in the AOS API response. This was my solution to pair down the list, it is not required. I see two ways to practically implement ignoring of SSID:

  1. Regex key search (net.wifi.ssid.scan[[^]]*].band\d2\d00
  2. Loop over the keys and extract those with "net.wifi.ssid.scan" in them.

Please advise if you need more information or as to how to proceed.