pub unsafe extern "C" fn esp_wifi_set_promiscuous_filter(
    filter: *const wifi_promiscuous_filter_t
) -> esp_err_t
Expand description

@brief Enable the promiscuous mode packet type filter.

@note The default filter is to filter all packets except WIFI_PKT_MISC

@param filter the packet type filtered in promiscuous mode.

@return

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