Re-enable ESP NOW. #14406
Answered
by
Pawelinode
Pawelinode
asked this question in
ESP32
Re-enable ESP NOW.
#14406
-
The first packet is sent successfully. Attempting to send the second one results in an "ESP_ERR_ESPNOW_NOT_FOUND" error. How do I re-enable the ESPNOW interface?
|
Beta Was this translation helpful? Give feedback.
Answered by
Pawelinode
May 1, 2024
Replies: 1 comment 3 replies
-
In an old project I could do this: while True:
w0.active(True) # turn on radio only when needed
# if you want to save more battery, set sync=False
# at cost of not knowing if message was received.
w0.config(channel=6) # to put radio back on ch 6 after lightsleep()
e0.send(repeater_mac, status, True)
w0.active(False)
machine.lightsleep(60000) Maybe something to do with putting WiFi back on-channel?? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found the cause of the problem. I did not re-execute e.add_peer(b'\xff' * 6)