Fernan
04/12/2025, 9:24 PMfloitsch
04/12/2025, 9:26 PMscan (https://libs.toit.io/net/wifi/library-summary#scan(3%2C0%2C0%2Cpassive%2Cperiod-per-channel-ms ) you should get AccesPoint (https://libs.toit.io/net/wifi/class-AccessPoint) objects back which have an rssi fieldfloitsch
04/12/2025, 9:28 PMFernan
04/12/2025, 9:34 PMFernan
04/13/2025, 12:16 AMfloitsch
04/13/2025, 8:09 AM.do doesn't do that.
So either use a for i := ... loop, or list.size.repeat: | i | ...Geoff
02/14/2026, 11:08 PMfloitsch
02/14/2026, 11:10 PMfloitsch
02/15/2026, 6:18 PMfloitsch
02/15/2026, 6:18 PMimport net.wifi
main:
wifi-client := wifi.open null
print wifi-client.access-point.ssid
print wifi-client.signal-strengthfloitsch
02/15/2026, 6:18 PMfloitsch
02/15/2026, 6:19 PMGeoff
02/15/2026, 8:09 PMfloitsch
02/15/2026, 8:12 PM/**
Returns the signal strength of the current access point association
as a float in the range [0..1].
Throws an exception if this network isn't currently connected to an
access point.
*/
signal-strength -> float:
info := (client_ as WifiServiceClient).ap-info handle_
rssi := info[WIFI-SCAN-RSSI_]
// RSSI is usually in the range [-100..-35].
rssi = min 65 (max 0 rssi + 100)
return rssi / 65.0floitsch
02/15/2026, 8:13 PMwifi-client.access-point you can get the integer value from there.Geoff
02/15/2026, 8:14 PM