espressif / esp-now

A connectionless Wi-Fi communication protocol
Apache License 2.0
477 stars 90 forks source link

Are esp_now send/receive APIs thread safe (AEGHB-329) #87

Closed M4tsuri closed 11 months ago

M4tsuri commented 11 months ago

I wonder if it's safe to

  1. call esp_now_send in multiple threads
  2. call esp_now_send in a thread different from where receiving callback is called

Thank you.

lhespress commented 11 months ago

@M4tsuri It's safe to call it in multiple threads, you doesn't care the receive callback function, but must wait for the send callback of esp_now_send

M4tsuri commented 11 months ago

Got it. Thank you for your prompt reply.