I'm using a esp8266 in a project,, I Need to conserve power, ,, I have the chip send one piece of data to a client then turn on a certain led according to a result.. Then I want the chip to "basically" shut down UNTILL a power reset but keep display led on... This project all works fine using Light Sleep Mode... Now, I am only using 3 lines of code to accomplish the sleep (indefinitely)..
//wifi_station_disconnect(); not using
//wifi_set_opmode(NULL_MODE); not using
wifi_fpm_set_sleep_type(LIGHT_SLEEP_T); //1
wifi_fpm_open(); //2
wifi_fpm_do_sleep(0xFFFFFFF); //3
This Works the way I want and goes to sleep, BUT AM I looking for trouble down the road.. I mean, by using some kind of do sleep timing line of code (line3)..????
Any Response Will be appreciated Thanks...
ESP8266, To Sleep or Not to sleep that is a question
Re: ESP8266, To Sleep or Not to sleep that is a question
Using the wifi_fpm_do_sleep() function with a sleep duration of 0xFFFFFFF will effectively put the ESP8266 into deep sleep mode indefinitely until it receives a reset signal. You can use the timer wake-up from deep sleep: https://randomnerdtutorials.com/esp32-t ... eep-sleep/
Re: ESP8266, To Sleep or Not to sleep that is a question
Well thank you liaifat85,,, Thats the answer I was hopping for... I just want to show and keep led on, but stop major current flow... I just needed a second opinion....
Who is online
Users browsing this forum: No registered users and 15 guests