You are reading a single comment by @AkosLukacs and its replies. Click here to read the full conversation.
  • Ok, I can now see the correct date and time, but, my tests shows that if I'm using onInite function when the board is connected to an external power source the date goes back to 1970, is that mean that I need to manage getting the current datetime from the internet or whatever so the board can continue from there or there is another better solution for boards that does not connect to the internet like Puck.js etc. ?

    Thanks,
    Michael.

  • Yes, removing power from it resets the clock.
    If you keep the Puck powered, it will remember the time. And will last a long time on battery.
    Or you can use an external RTC with it's own battery, and read time from the RTC on startup.
    Or you can set the time with setTime when you connect to it. You can do it automatically with some coding, if you connect to it with BLE from your computer of phone.

About

Avatar for AkosLukacs @AkosLukacs started