Replies: 4 comments 4 replies
-
Always good to have code examples posted. Have you seen Glenn20's ESPnow utils on Github? |
Beta Was this translation helpful? Give feedback.
-
Question for Glenn if he sees this question: |
Beta Was this translation helpful? Give feedback.
-
Error 5 suggests input/output error. e.send() should be a string or byte-string. Think I had an error once when I tried to send an int or a float. |
Beta Was this translation helpful? Give feedback.
-
I found the specialized discussion for ESP NOW and I will continue on this one |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
here is a small program to help those who want to use ESP NOW, without tearing their hair like me. All the information can be found on this page https://micropython-glenn20.readthedocs.io/en/latest/library/espnow.html#espnow-and-wifi-operation, but they are scattered.
In summary, to use ESP32 with ESP8266, the ESP8266 must use the MAC AP address of the ESP32 to send data.
For my tests, I have an ESP32 or ESP8266 for the server, and an ESP 8266 for the client.
If the server is an ESP32, it is imperative to use this command: e.add_peerpeer,ifidx=network.AP_IF, which requires using the MAc address of the AP interface.
Also to be sure that the two ESPs communicate, you have to block the Wifi channel (1 for me)
The server
The client
I hope these few lines will be useful to someone.
Beta Was this translation helpful? Give feedback.
All reactions