I’m building a IoT device that will work indoors and I use an Electron for connectivity.
The Electron has a handy feature, where if you press the ‘mode’ button once it’s breating blue it will flash the signal strength in a series of green lights
“The signal strength (RSSI) will be shown in a 0-5 green blinks, 5 being the strongest”
I need to reproduce this logic using 5 LEDs on my device, so that a user can visually see the indoor signal strength as they move the device around and decide where best to place it (i.e. so they can place it with someplace with a strong signal)
Getting the RSSI via the firmware/user app API is easy:
But can you please let me know what Algorithm/logic you use to translate the RSSI returned via the API into a 1-5 scale? so I can mirror the built-in, “mode” feature in my own 5 LED setup. I’d like to mirror this exactly so I’m confident in the logic.
Do you use the “qual” as well in your Algorithm?
Thanks very much,