WPS: No way to get key after successful connection

Niz
Posts: 1
Joined: Mon Oct 09, 2017 8:56 am

WPS: No way to get key after successful connection

Postby Niz » Mon Oct 09, 2017 9:57 am

WPS can be done just by simple command and it works fine.
And we can get SSID by "AT+CWJAP?".
But there's no way to get key.

We are creating product without auto reconnection.
Then we need to keep both SSID & key retrieved by WPS.

Unless we could get key, WPS is just as useless with ESP8266...
Then we need to abandon to use it in our product...

We are appreciated if you could plan to add functionality to get the key.
Thank you very much.

P.S. followings are sample we are successful to get WPS done. And we need to continue to get key...
AT+WPS=1

wps started

OK
WIFI DISCONNECT
wps success,connecting ap ...
WIFI CONNECTED
WIFI GOT IP
AT+CWJAP?
+CWJAP:"myaccesspoint","a4:12:42:xx:xx:xx",4,-52

OK

blubb
Posts: 116
Joined: Mon Jun 22, 2015 5:35 am

Re: WPS: No way to get key after successful connection

Postby blubb » Wed Oct 11, 2017 4:39 am

I have no experience with the AT firmware, but isn't the data for a successful connection saved? Your module should be able to reconnect after a powercycle.
To force being offline, you could use NULL_MODE. With the NONOS SDK I'd just do
wifi_set_opmode(NULL_MODE);

Her Mary
Posts: 537
Joined: Mon Oct 27, 2014 11:09 am

Re: WPS: No way to get key after successful connection

Postby Her Mary » Thu Oct 12, 2017 3:05 pm

I think that maybe you can get it by wifi_station_get_config.

Who is online

Users browsing this forum: No registered users and 120 guests