MicKeyCZ wrote:Hi Dnc40085,My current project calls wifi.sta.getap() frequently to get the RSSI to use as a sort of proximity detection.
no flame, but how often your battery powered device needs to scan wifi?
Looking for "Home123" (does not exist) and found "Home" (exists).this must be a bug in the sdk, I checked the string in the struct that holds the scan_config and it indeed is passing "Home123" to the wifi_station_scan function which then seems to ignore the trailing numbers, this needs further testing...
PANIC: unprotected error in call to Lua API (attempt to call a number value)this one I can't figure out, the error seems to be occurring after both wifi_station_listap and wifi_scan_done functions have finished.
I understand the reason for exchanging SSID and BSSID in the table, but is it really necessary to change the behavior of the function instead of creating new ones?It needed to be changed, the old format overwrote any duplicate SSIDs in the table and some might find that undesirable. Also, creating new functions would most likely decrease the available flash and/or heap.
I could always submit a PR that would allow switching the table format between new and old versions.