ESP8266, To Sleep or Not to sleep that is a question

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...

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.