I notice that when my OVMS boots it starts collecting data from the car before it has the date and time.
So my first log entries are 1970-01-01 including some metric updates
When I'm away from Wifi it seems like the OVMS takes about 20 seconds to get an internet connection up (via the 3G and the Hologram SIM).
Does this matter?
As a vehicle module author do I need to worry about this and wait for the network to appear before polling? I would think not since some users may not want or need a network connection.
Thanks,
Steve
No, doesn't matter. Don't wait for the network or a valid time source, some users won't have a modem (= no GPS), some won't even connect to a Wifi network.
If it really bothers you, you can either look for a time source in your car you can query via CAN, or we can use the RTC RAM to at least keep the time over a reboot.
Regards,
Michael
… I think the system already keeps the time over reboots via RTC RAM, so that really should only be an issue on cold boots.
Regards,
Michael