pub struct EspNowReceiver<'d> { /* private fields */ }
Expand description
This is the receiver part of ESP-NOW. You can get this receiver by splitting
an EspNow
instance.
Implementations§
Source§impl EspNowReceiver<'_>
impl EspNowReceiver<'_>
Sourcepub fn receive_async(&mut self) -> ReceiveFuture<'_>
pub fn receive_async(&mut self) -> ReceiveFuture<'_>
This function takes mutable reference to self because the
implementation of ReceiveFuture
is not logically thread
safe.
Source§impl EspNowReceiver<'_>
impl EspNowReceiver<'_>
Sourcepub fn receive(&self) -> Option<ReceivedData>
pub fn receive(&self) -> Option<ReceivedData>
Receives data from the ESP-NOW queue.