Hi to restart the device without resetting RTC clock. For example, when I run:
import machine
print(str(time.localtime()))
# Set the datetime
machine.RTC().datetime((...))
print(str(time.localtime()))
machine.reset()
print(str(time.localtime()))
Outputs like this
(2000, 1, 1, 0, 2, 4, 5, 1)
(2052, 11, 10, 10, 26, 45, 6, 315)
# Resets
(2000, 1, 1, 0, 2, 4, 5, 1)
I would like reset everything but the RTC time