Chat freely about anything...

User avatar
By Sirquil
#86642 ESP8266 Sketch development started 08/01/2018. Previous Topic; yesterday, added FTP transfer, ability to keep monthly elapsed time and yearly elapsed time, and reviewed simulated one year cycles; all working as the Serial Monitor.txt confirms.

I am using millis(). For timing purposes; with furnace elapse run times, is this adequate?

William
Attachments
Serial Monitor output of "Furnace_Monitor.ino."
(4.54 KiB) Downloaded 189 times
"Furnace_Monitor.ino" is for monitoring the elapsed runtime of a furnace.; includes additional files
(43.54 KiB) Downloaded 209 times
User avatar
By RichardS
#86643 millis() is very accurate, based on system clock which is 30ppm or better type XTAL....

RichardS
User avatar
By Sirquil
#86650
This looks like arduino? I don't recall a function like that in the SDK?
--eriksl

Tools and utilities exist to compile and run Arduino sketches on ESP8266s. What if instead we wanted to port those Arduino sketches to native ESP8266 code? Can we find mappings between the Arduino APIs and the corresponding ESP8266 APIs?
-- from Kolban's Book page 160:

Arduino: millis()

ESP8266: system_get_time() / 1000

William