Skip to content

Conversation

dosas
Copy link
Contributor

@dosas dosas commented Aug 22, 2024

when calling mac address to fast after setting it

happened on ESP32-WROOM-32E with IDF version > 5

I noticed that the communication was working when logging was set to values >= Info, as soon as the logging level was decreased the mac address was not read back correctly.

with log level info
[I] ESPNowStream.h : 108 - setting mac C8:2E:18:5E:03:98
mac: C8:2E:18:5E:03:98
[I] ESPNowStream.h : 316 - esp_now_init:
[I] ESPNowStream.h : 162 - addPeer: b0:b2:1c:ff:a2:ab

with log level warning
[E] ESPNowStream.h : 118 - Wrong mac address: 00:00:00:00:00:00
[E] ESPNowStream.h : 157 - addPeer before begin

I tried to solve this by using polling but still the same.
So the only solution that worked for me was a small delay.

when calling mac address to fast after setting it

happened on ESP32-WROOM-32E with IDF version > 5
@pschatzmann pschatzmann merged commit 284d525 into pschatzmann:main Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants