Page 1 of 1
Time() command
Posted:
Sun Sep 24, 2017 6:30 am
by Roshan
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
Re: Time() command
Posted:
Mon Sep 25, 2017 3:19 am
by btidey
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.
Re: Time() command
Posted:
Mon Sep 25, 2017 8:29 am
by Roshan
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