-->
Page 1 of 1

Unable to connect to WiFi network, and then randomly I can

PostPosted: Thu Feb 02, 2017 1:00 am
by Jake Dluhy
Hi! I ran into a unique problem tonight. I was able to fix it, but I don't know why.

About a week ago, I was able to get the ESP set up as an Access Point so that it would accept my network ssid and password, and connect to my wifi network. Everything was working fine.

I took a bit of a break, and coming back to it I try again and it can't connect. I reset it, power cycle, everything. It accepts the POST request containing my network ssid and password information, but it can't connect. Then I load up a sketch with the same ssid and password information hardcoded in, and it connects fine. Then I load up the original sketch, I make the exact same POST request I was making before, and it connects first try. Am I missing something, or should I chalk it up to ¯\_(ツ)_/¯?

I would be happy to provide code if you think it would help. Thanks!

Re: Unable to connect to WiFi network, and then randomly I c

PostPosted: Sat Feb 04, 2017 5:58 pm
by g6ejd
I have had exactly the same problem too in the past. Like you I never really knew what solved it. And yes I loaded a sketch with ssid and password which then seems to refresh the Wi-Fi credentials held on the ESP and then everything works OK again as an AP. It may be the ESP not retaining the data, who knows?