WPS WPS_TYPE_PBC

ikerbelloso
Posts: 20
Joined: Wed Jul 27, 2016 7:34 am

WPS WPS_TYPE_PBC

Postby ikerbelloso » Thu Feb 02, 2017 12:52 pm

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

nmtrivedi
Posts: 6
Joined: Wed Jan 04, 2017 2:10 pm

Re: WPS WPS_TYPE_PBC

Postby nmtrivedi » Fri Feb 03, 2017 5:38 am

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.

Who is online

Users browsing this forum: No registered users and 48 guests