Page 1 of 1

What is firmware version printed in logs on ESP start and how to change it

Posted: Mon Dec 20, 2021 6:05 pm
by MaazSk
Hello Everyone,

I was writing a code for OTA updates then I came across a warning as below
I (22:25:52.304) OTA: Running firmware version: 7490ea9-dirty
W (22:25:52.486) OTA: Current running version is the same as a new. We will not continue the update.
E (22:25:52.534) OTA: image header verification failed
E (22:25:52.588) OTA: ESP_HTTPS_OTA upgrade failed
I want to know how can I change the firmware version of the device.

1. I tried to clean the project and rebuilt it but no change
2. I made certain changes in the code like added some print statement but then also there are no changes in the firmware version

So, if I want to change the firmware version then what do I need to do?

Thanks in advance

Re: What is firmware version printed in logs on ESP start and how to change it

Posted: Tue Dec 21, 2021 1:38 am
by ESP_Sprite
It's the application version. By default, it's set to the git commit of your application (so you'd change it to a new 'version' by committing your app code) but you can change it to get the version from somewhere else.

Re: What is firmware version printed in logs on ESP start and how to change it

Posted: Tue Dec 21, 2021 4:45 am
by MaazSk
Thank you! @ESP_Sprite.