ESP8266 Sleep - Connect to Wifi - Send HTTP - Sleep again

Stational
Posts: 42
Joined: Sat Jul 02, 2016 10:54 pm

ESP8266 Sleep - Connect to Wifi - Send HTTP - Sleep again

Postby Stational » Wed Dec 21, 2016 1:46 am

Hi,

i would like to use the ESP8266 to measure some data via a sensor every 60 seconds and send that data via a http get request to my webserver. Then i want the esp8266 to sleep again for 60s before it does the same thing again. How could i accomplish this?

Best regards

ESP_Xutao
Posts: 134
Joined: Tue Sep 27, 2016 5:42 pm

Re: ESP8266 Sleep - Connect to Wifi - Send HTTP - Sleep again

Postby ESP_Xutao » Thu Dec 22, 2016 10:49 am

Hi:
This is ok. One thing to remind you that if you force ESP8266 to light sleep or deep sleep, then wifi connection will be lost. So in your application, before sending http get request to your webserver, you need to assure your ESP8266 connect router successfully. So you should cut dowm your ESP8266 sleep time to give enough buffer time to connect to router.

Who is online

Users browsing this forum: No registered users and 5 guests