So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By Roshan
#70265 Hi !

I want to know about time() command.

When every time i powerup esp8266 module i have to use time.setup() command .

is there any other way to only keep time in running even power failure ?

thanks

Roshan
User avatar
By btidey
#70280 There is no internal rtc that maintains time during power down so you have 2 options.

Interface an external rtc module

If the esp8266 has internet connection then use ntp to get the time.

Second option has the advantage that it is just software and time will be accurate forever. You can get the time on power up and then refresh it periodically to keep t from drifting.

Search for esp8266 ntp to find lots of articles and videos and hw to do this.
User avatar
By Roshan
#70290 Dear Sir,

thanks, i will go with external rtc. One more question .

where i i can find flash size related information ?

ESP8266-01 flash Size ?
ESP8266-12 flash Size ?

thanks