gmag11 / QuickESPNow

Wrapper for easy use of ESP-NOW on ESP32 and ESP8266
MIT License
91 stars 21 forks source link

If esp_now_send fails, readyToSend never becomes true again #14

Open brawner opened 1 month ago

brawner commented 1 month ago

I believe the logic expects that esp_now_send will always call tx_cb, but I'm not sure that will happen in all error cases. That means readyToSend can stay false and block any more sends from happening.

In lines: https://github.com/gmag11/QuickESPNow/blob/main/src/QuickEspNow_esp32.cpp#L201-L216

andre-di commented 2 weeks ago

I think I am having this issue right now actually.

I trying to use WiFi at the same time and that causes ESPNOW to give this error "E (12712) ESPNOW: Peer channel is not equal to the home channel, send fail!".

After this error I get 3 broadcasts out and then it seemingly does not get ready again.