pub type esp_now_recv_cb_t = Option<unsafe extern "C" fn(esp_now_info: *const esp_now_recv_info_t, data: *const u8, data_len: c_int)>;
Expand description

@brief Callback function of receiving ESPNOW data @param esp_now_info received ESPNOW packet information @param data received data @param data_len length of received data @attention esp_now_info is a local variable,it can only be used in the callback.

Aliased Type§

enum esp_now_recv_cb_t {
    None,
    Some(unsafe extern "C" fn(_: *const esp_now_recv_info, _: *const u8, _: i32)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *const esp_now_recv_info, _: *const u8, _: i32))

Some value of type T.