Welcome, Guest
Username: Password: Remember me
General topics about hardware.

TOPIC: ESP8266 sometimes unable to connect to AP

ESP8266 sometimes unable to connect to AP 10 months 4 days ago #3431

  • Jansen
  • Jansen's Avatar
  • Offline
  • New Member
  • Posts: 12
  • Karma: 0
I have a ESP8266-12F setup to send data to thingspeak. It connects to my AP and does a http post to a rest service where it stores the measured light intensity and the battery voltage. That looks like this:



It does an update every minute. Between updates it goes in deep sleep mode. After a one minute timeout it wakes up and reboots and does a new post. But it sometimes seems to miss one or more updates. I have no idea if it simply doesn't wake up from the sleep cycle, if it is unable to connect to the AP or if the webservice refuses connection. Does anyone else have the same problem?
Last Edit: 10 months 4 days ago by Jansen.
The administrator has disabled public write access.

ESP8266 sometimes unable to connect to AP 4 months 2 weeks ago #3634

  • swisscore
  • swisscore's Avatar
  • Offline
  • New Member
  • Posts: 16
  • Karma: 0
what is your schematic ?

I have the same problem with my ESP-01 but I think this is because GP0 and GP2 aren't in the right status during the reset!

Maybe have a look with this idea
The administrator has disabled public write access.

ESP8266 sometimes unable to connect to AP 4 months 2 weeks ago #3637

  • EasyIoT
  • EasyIoT's Avatar
  • Offline
  • Administrator
  • Posts: 817
  • Thank you received: 254
  • Karma: 23
swisscore wrote:
what is your schematic ?

I have the same problem with my ESP-01 but I think this is because GP0 and GP2 aren't in the right status during the reset!

Maybe have a look with this idea

If you are using EasyIoT Cloud and MQTT: we added security feature - if there are too many login attempts with incorrect password your IP address is banned for some period of time and you are unable to connect to EasyIoT Cloud.
The administrator has disabled public write access.

ESP8266 sometimes unable to connect to AP 3 months 5 days ago #3731

  • Nikoloudakis
  • Nikoloudakis's Avatar
  • Offline
  • New Member
  • Posts: 8
  • Thank you received: 2
  • Karma: 0
I might have an idea to help you.
I think there is a problem with the sketch, because I had a similar problem.
When the esp restarts in my case, it immediately tries to connect to the WiFi.
In the beginning of the code we write WiFi.begin(storage.ssid, storage.pwd);
After debugging I found that sometimes after restart esp connected in the background immediately to WiFi before the code reaches WiFi.begin! Strange and odd! And after the code reaches WiFi.begin, it is already connected, so the connection fails and goes to AP mode
I inserted a statement if (WiFi.status() != WL_CONNECTED) before WiFi.begin and now I don't have a single connection failure. :P
The administrator has disabled public write access.
The following user(s) said Thank You: swisscore

ESP8266 sometimes unable to connect to AP 3 months 4 days ago #3735

  • swisscore
  • swisscore's Avatar
  • Offline
  • New Member
  • Posts: 16
  • Karma: 0
Thanks for your tip, I will add to do better my sketch!
The administrator has disabled public write access.
Time to create page: 0.197 seconds
Powered by Kunena Forum