Hello there!!!
I have two ESP32 (sender and receiver)
Sender reads a few digital pins and temp
Receiver has one LED per pin in sender, and a small OLED to display sender’s temp, plus one “connected” LED that shows the status of connection between both (connected or not)
I would like to add the RSSI value in the display of the connection in general.
But WiFi.RSSI() returns 0 (and as far as I have been looking, it only works when connected to a WiFi network, which is not the case.
Anyone has any idea?
Thanks and cheers!!!
Marcelo from Argentina!!!
Hi.
I saw that you also posted your issue in our Facebook group. Meanwhile, did you find out something new?
There is an example that gets the RSSI using the Wi-Fi functions in an ESP-NOW example. See it here: https://github.com/espressif/arduino-esp32/blob/master/libraries/ESP32/examples/ESPNow/Basic/Master/Master.ino
I hope this helps.
Regards,
Sara
Thanks!
Also found this, but still not sure how to implement this yet.
I have to modify the project I believe, and create an AP in the “slave” (the module with Oled and leds) and measure RSSI from the “master” (the one with the temp sensor and digital inputs) and send it back to the slave.
The original project does not involve WiFi at all, only ESP-NOW (which has an amazing range!)
I will keep digging and post final project here, I quite happy with the results and the RSSI data is not central to this project.
Thanks and cheers from Argentina!
Marcelo
Yes, that’s what I understood—you need to create an AP on the slave.
Then, let us know the results.
Regards,
Sara
I may need help testing this, but I believe I make it work.
https://github.com/TenoTrash/ESP32_ESPNOW_RSSI
https://www.speedcheck.org/wiki/rssi/
If someone is willing to test this, I will be very happy.
In my field testing, it works!
Cheers!
Marcelo from Argentina
Hi again.
I tested your code. I had to modify some sections to make it work for me (I’m using a BME280 and the Oled display is slightly different).
The section that gets the RSSI seems to be working fine! Thank you so much for sharing. This will definitely be helpful for a lot of our readers.
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
Regards,
Sara