Is there a way to wipe Retained variables to the uninitialized state without performing a hard power cycle and removing/disconnecting the RTC battery?
On OTA firmware updates sometimes the retained variables need to change that causes the order to change from the previous, this can cause retained variables to be wrong for the declared variable.
retained bool firstRetained = 1; retained bool secondRetained = 0;
Now there is a firmware update and the size or location changes to below:
//retained bool firstRetained = 1; //removed retained bool secondRetained = 0;
now secondRetained can equal 1 instead of 0.
I’d like a way to reinitialized them without a hard power cycle and our boards have a permanent rechargeable backup battery connected too.