You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
esp32/esp_espnow: Allocate the ESPNow singleton dynamically.
This prevents send and recv ringbuffers being re-claimed by gc.
callback_wrapper(): Use static byte string buffers for callback
args. This eliminates heap allocation on each invocation of the send
and receive callbacks. User callbacks must account for these re-used
static buffers.
Breaking change: Callbacks take two args instead of a tuple. This
simplifies how we eliminate heap allocation in callback invocation.
init(),deinit(): Tidy up synchronisation with ISR routines.
New methods:
config(): to get and set the send and recv buffer sizes and
"cb_repeat" (cap on the number of packets to process on each
callback()).
stats(): Returns a tuple of transfer stats: (tx_packets, rx_packets,
lost_tx_packets, lost_rx_packets).
0 commit comments