esp_wifi_ap_wps_start() function
WPS starts to work. @attention WPS can only be used when softAP is enabled.
Arguments
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 value
- 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
![]()
int esp_wifi_ap_wps_start(const unsigned char *pin)
esp_wifi_ap_wps_start() calls 4 functions:
![]()
esp_wifi_ap_wps_start()
esp_wifi_ap_wps_start() reads 3 variables and writes 1 variable:
![]()
esp_wifi_ap_wps_start()