pub unsafe extern "C" fn esp_wifi_set_csi_rx_cb(
    cb: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut wifi_csi_info_t)>,
    ctx: *mut c_void
) -> i32
Expand description

@brief Register the RX callback function of CSI data.

   Each time a CSI data is received, the callback function will be called.

@param cb callback @param ctx context argument, passed to callback function

@return

  • ESP_OK: succeed
  • ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init