Function esp_idf_hal::sys::esp_wifi_ap_wps_start
source ยท pub unsafe extern "C" fn esp_wifi_ap_wps_start(pin: *const u8) -> i32
Expand description
@brief WPS starts to work.
@attention WPS can only be used when softAP is enabled.
@param pin : Pin to be used in case of WPS mode is pin. If Pin is not provided, device will use the pin generated/provided during esp_wifi_ap_wps_enable() and reported in WIFI_EVENT_AP_WPS_RG_PIN
@return - ESP_OK : succeed - ESP_ERR_WIFI_WPS_TYPE : wps type is invalid - ESP_ERR_WIFI_WPS_MODE : wifi is not in station mode or sniffer mode is on - ESP_ERR_WIFI_WPS_SM : wps state machine is not initialized - ESP_FAIL : wps initialization fails