-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple Router with same SSID #1
Comments
Have you tested this? I think it's is a very nice and necessary solution indeed, if it works. I am wondering if the channel can be changed on the fly. We have to keep in mind that ESP-Now is invented to cover longer distances so the chance that the sender (master) is not within reach of the router is not imaginary. In those cases a routine that scans available networks does not work. I am also worried that the sender trying to connect to a Wi-Fi station will be a no-no for battery operated solutions, but I am not sure about the power requirements of ESP-Now, to be honest. Would WiFi.mode(WIFI_MODE_STA); still be necessary? |
It works!
It needs more refinement as there can be other reasons that a send fails and then you don't want the channel to be changed again, but it's a start. EDIT: To answer my own question, yes, WiFi.mode(WIFI_MODE_STA) is still necessary. And I should have mentioned that setup() and initWiFi() remain the same, but without the |
you can check in my repository the deep dive into the power requirements of ESPnow together with the time to wake up, gather data, send to receiver and go to sleep |
First of all, a thousand apologies for not having replied to you all this time. I have too many projects on the go. 😁 You are right to point this out. I used this technique on all my sensors spread around the house for almost two years, and it works great. The router can change the channel anytime, and everyone is tuned in automatically. I should have updated the code on GitHub a while ago, but I completely forgot to. I'll update it as soon as I have time. You should know that with WiFi.setSleep(WIFI_PS_NONE); I just looked at your GitHub repo. A great project and very well documented. Congratulations, and thank you! |
Hey all,
I can confirm that you have to use the same WiFi-Channel for ESPNow-Sender and ESPNow-to-WiFi-Gateways. If you have multiple routers with the same SSID (e.g. in university or company) and you always want to use the best WiFi (so no hardcoded channel) you have to try to send the message on each channel until you get a success reply.
`
`
The text was updated successfully, but these errors were encountered: