Skip to content
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

Too frequent send yielding ESP_ERR_ESPNOW_NO_MEM #1

Open
neel opened this issue Apr 17, 2021 · 1 comment
Open

Too frequent send yielding ESP_ERR_ESPNOW_NO_MEM #1

neel opened this issue Apr 17, 2021 · 1 comment
Assignees

Comments

@neel
Copy link
Owner

neel commented Apr 17, 2021

Describe the bug
Error ESP_ERR_ESPNOW_NO_MEM While sending too frequently.

To Reproduce
Run any of the examples hello-c or hello-cxx with batch increased to 50.
(Change the Source and Sync mac addresses accordingly.)

Expected behavior
ESP_ERR_ESPNOW_NO_MEM will never be encountered, no matter how frequently transmit is called.

Additional Information

dhyara::link::transmit does not send immediately, instead in enqueues the frame which are to be dequeued by dhyara::link::_esp_send_cb.
The assumption is that if one send operation is performed only after the previous send operation completes (the send callback is called) then the error ESP_ERR_ESPNOW_NO_MEM won't be thrown.

dot_inline_dotgraph_2

See: dhyara::link

@neel neel self-assigned this Apr 17, 2021
@neel
Copy link
Owner Author

neel commented Apr 17, 2021

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

No branches or pull requests

1 participant