Function esp_idf_sys::esp_wifi_set_promiscuous_rx_cb

source ยท
pub unsafe extern "C" fn esp_wifi_set_promiscuous_rx_cb(
    cb: wifi_promiscuous_cb_t,
) -> esp_err_t
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