Hello!
I have a project where I have a cloud variable of type CloudTime displayed in a Time Picker widget. In my sketch I set the variable by use of the ArduinoCloud.getLocalTime() function and in the dashboard it displays my local time (Central European) as it should.
I then notised that if my board (Arduino Nano 33 IoT) was reset the time variable was reset back to zero (displayed as start of Unix time i.e. 1970 something). I did not want that behavior but rather have the variable survive a possible restart. Since my board does not have any EEPROM and I do not want to use flash memory due to its limited number of write operations I instead though that I could make my cloud variable persistent by setting it Read & Write, instead of Read Only which had been the case so far. I did not intend to enter any time value through the widget, but just make it Read & Write so that the IoT Cloud should make it survive a restart. But that led to two new problems:
-
In dashboards displayed in the IoT app (e.g. on my mobile phone and iPad) the widget now displayed GMT instead of local time.
-
In the "Cloud Editor" on my PC the dashboard could no longer be displayed or edited at all. The dashboard starts to display but reverts to a blank screen before any widgets appear.
If I go into Things and change the Time Picker widget back to Read Only both dashboard problems go away again. Very consistent and repeatable.
I have now given up the idea of making the time value survive a restart (at least for the time being) but thought I would bring the problem up anyway, in case someone cares to look into it.
Cheers,
Lennart