It works fine except that sometimes when I call
Code: Select all
sntp_get_current_timestamp()
it returns the time equivalent to "1970.01.01 00:00:00" and logs an error
Code: Select all
please start sntp first !
How to I test if sntp_init() has completed? Or, provide a callback perhaps?