Page 1 of 1

WPS WPS_TYPE_PBC

Posted: Thu Feb 02, 2017 12:52 pm
by ikerbelloso
HI,
I'm trying to connect ESP-32 to an AP through BPC . This is the code I'm using:

esp_wifi_set_mode(WIFI_MODE_STA)
esp_wifi_wps_enable(WPS_TYPE_PBC)
esp_wifi_start()
esp_wifi_wps_start(10000)

And I'm not getting any of the events I expected to have:
SYSTEM_EVENT_STA_WPS_ER_SUCCESS
SYSTEM_EVENT_STA_WPS_ER_FAILED
SYSTEM_EVENT_STA_WPS_ER_TIMEOUT

If I try to configure the WPS_TYPE_PIN, I intermediately get SYSTEM_EVENT_STA_WPS_ER_PIN. I assume that it's because I have no PIN set (the SDK is not giving any call for that by the way).

Am I missing something?
regards

Re: WPS WPS_TYPE_PBC

Posted: Fri Feb 03, 2017 5:38 am
by nmtrivedi
I assume you are initializing wifi before starting wps using esp_wifi_init() and you received SYSTEM_EVENT_STA_START event. You can also check whether all above APIs return ESP_OK or not.