Let's say my device is running firmware A.bin and then through FOTA downloads and loads successfully B.bin, which has the following code. I'm still not able to make B.bin restart the device in A.bin.
Code: Select all
system_upgrade_flag_set(UPGRADE_FLAG_FINISH);
Serial.println(system_upgrade_userbin_check());
system_upgrade_reboot();
The device does reboot and the system_upgrade_userbin_check always returns a 0 if it previously returned a 1 and vice versa, so it thinks it runs a different binary, but the firmware name and md5 is still that of B.bin. What is still missing here for rebooting the device in the other firmware (A.bin)?
Thank you in advance!