Function esp_idf_svc::sys::esp_wifi_set_promiscuous_rx_cb
source ยท pub unsafe extern "C" fn esp_wifi_set_promiscuous_rx_cb(
cb: Option<unsafe extern "C" fn(_: *mut c_void, _: u32)>,
) -> i32
Expand description
@brief Register the RX callback function in the promiscuous mode.
Each time a packet is received, the registered callback function will be called.
@param cb callback
@return
- ESP_OK: succeed
- ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init