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
WPS WPS_TYPE_PBC
Re: WPS WPS_TYPE_PBC
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: jcap1993 and 68 guests