ESP8266 Wireless Protected Setup (WPS) and Debugging
Posted: Tue Aug 25, 2015 11:33 am
First off, kudos to the community and to Ivan Grokhotkov in particular for getting the new SDK into the Arduino build for the ESP8266. We have been wanting to setup WPS for some time now and having the core support for the Push Button mode is going to be awesome... if I could just get it working
So, a few comments and questions and hopefully this thread can serve as a guiding light for all in the future who want to implement WPS-PBC on their ESP8266.
#1) How in the world do you put the ESP8266 into debug mode??? I see in the code all this great debugging information like
#2) I have a push button on my hardware, when that is pressed I am calling
Thanks for any and all assistance!!
So, a few comments and questions and hopefully this thread can serve as a guiding light for all in the future who want to implement WPS-PBC on their ESP8266.
#1) How in the world do you put the ESP8266 into debug mode??? I see in the code all this great debugging information like
Code: Select all
but I can't ever see it. I see in the debug.h file this define: DEBUGV("wps cb status: %d\r\n", status);
Code: Select all
so perhaps I just need to overwrite it? How can I get this debugging information back out of the module??#define DEBUGV(...)
#2) I have a push button on my hardware, when that is pressed I am calling
Code: Select all
. It is returning TRUE but that can't be, because I haven't pressed the button on my router as well So... assuming it was working properly, how do we retrieve the SSID and Key(password) that the module associates with so that we can connect again after a power cycle? I know I can call beginWPSConfig();
Code: Select all
to retrieve the SSID, but what about the key(password/passphrase)?WiFi.SSID();
Thanks for any and all assistance!!