Managing Daylight Saving Time with ArduinoCloud (IoT)
Hello everyone,
I am currently developing an IoT application with an MKR WiFi 1010 board, in which I want to manage certain tasks based on the local time. When establishing the connection to "Arduino IoT Cloud," the board's RTC is updated with the local time retrieved from the network. However, this time corresponds to UTC and not UTC+1 (French local time in winter). Could you enlighten me on how to automatically update my RTC with the correct time (summer or winter)? Either by correcting it directly at the connection or afterwards.
The functions for connecting to Arduino Cloud are as follows:
ArduinoCloud.begin(ArduinoIoTPreferredConnection); // Connect to Arduino IoT Cloud setDebugMessageLevel(4); // by default the value is 2 ArduinoCloud.printDebugInfo();
ArduinoCloud.begin(ArduinoIoTPreferredConnection); // Connect to Arduino IoT Cloud setDebugMessageLevel(4); // by default the value is 2 ArduinoCloud.printDebugInfo();
The corresponding traces obtained on the serial link are: