Does an IOT cloud thing automatically set the Uno R4 RTC?

My project is a data logger for logging temperatures in the house. It is based on the Uno R4 WiFi which is set up as a IOT THING to enable me to monitor things on my phone dashboard also. I want to log based on time from the internal Real Time Clock to be independent of internet access. I have been thinking about how to set the clock, maybe with ArduinoCloud.getLocalTime(), then wondering how I establish that the cloud connection is valid, etc. To cut a long story short after experimenting with some code I found that I apparently don't need to set the RTC because it has already been set. If I instantiate a new thing with #include "RTC.h" and just put

RTCTime currentTime;
RTC.getTime(currentTime);
Serial.print(currentTime);

in the loop, it prints out the correct time. I have no other code to set the time of the RTC. Is this what is supposed to happen? It is all rather simple and not what I expected.

yup it sure does. However I cant figure out yet how to reset it with a time zone offset. So I just have my current dashboard in UTC time

Hi @countrygirlny77. I'll provide instructions you can follow to configure the time zone for the Thing:

  1. If you are not already, log in to your Arduino account:
    https://login.arduino.cc/login
  2. Click the following link to open the list of your Arduino Cloud Things in the web browser:
    https://app.arduino.cc/things
  3. Click the name of the Thing for which you want to adjust the time zone configuration.
    The "Setup" page for the Thing will open.
  4. Select the "Metadata" tab at the top of the page.
    The Thing's metadata page will open.
  5. Select the desired time zone from the menu under the "Timezone" section of the page.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.