Struct esp_wifi::esp_now::EspNowReceiver
source · 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.