Toit
#wifi
Thread channel in help
Fernan
04/12/2025 09:24 PM
Hello, I need to read the wifi rssi dbm of my esp32
floitsch
04/12/2025 09:26 PM
If you do a
scan
(
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 field
floitsch
04/12/2025 09:28 PM
Example:
https://github.com/toitlang/toit/blob/master/examples/wifi/scan.toit
toit/examples/wifi/scan.toit at master ยท toitlang/toit
Program your microcontrollers in a fast and robust high-level language. - toitlang/toit
Fernan
04/12/2025 09:34 PM
Fernan
04/13/2025 12:16 AM
how do i get the index of an element on a list?
OP
Fernan
how do i get the index of an element on a list?
floitsch
04/13/2025 08:09 AM
The
.do
doesn't do that.
So either use a
for i := ...
loop, or
list.size.repeat: | i | ...
(edited)
6 messages in total