I would like to build a lib like ArduinoOTA but with no downtime at runtime. To achieve that I am wondering if it is possible to create a simple setup and loop code to
- Check for new releases
- If we have a new one start download it
- As download routine is not finished keep running the current release
- When download has finished, swap current release to the new one.
- Now the normal routine is running the new release.
I am pretty interested if it is possible to do by myself something like that.
I didn't find any paper or articles similar to this and I don't known if this is a challenge for Arduino scope or C/C++.
Maybe I am saying something bizarre but I have been thinking of save new release into flash memory, point to it and discard the old release from flash memory.