Export bin file with filename containing version number

on an ESP, I use OTA ESPhttpUpdate to update the program controlling the ESP via wifi. The program contains a version number and when it queries my cloud, the cloud returns the latest version number and the link where the compiled binary is located, so if the ESP does not have the same version it will download and install it

My need is to keep all the compiled files to possibly return to an earlier version, but with the arduino IDE when you export the compiled file, it overwrites the last compiled file, I did not find how to avoid this.

Is there a way to put a version number when exporting the compiled binary, or do we have to do it by hand?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.