pub unsafe extern "C" fn esp_wifi_get_mode(
    mode: *mut wifi_mode_t
) -> esp_err_t
Expand description

@brief Get current operating mode of WiFi

@param[out] mode store current WiFi mode

@return

  • ESP_OK: succeed
  • ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init
  • ESP_ERR_INVALID_ARG: invalid argument