Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Semantic versioning, certificates and authorization #88

Closed
kiliw opened this issue Jun 2, 2022 · 1 comment · Fixed by #95
Closed

Semantic versioning, certificates and authorization #88

kiliw opened this issue Jun 2, 2022 · 1 comment · Fixed by #95

Comments

@kiliw
Copy link

kiliw commented Jun 2, 2022

I- Arduino board: ESP32 WROOM 32

  • Arduino IDE version (found in Arduino -> About Arduino menu): 1.8.6

  • List the steps to reproduce the problem below (if possible attach a sketch or
    copy the sketch code in too):

Thanks for the great repo and examples. I used your https without root cert as a base to start working on. I now have a couple of questions, though.
Performing updates from version 1 > 2 and further worked fine. Since semantic versioning is supported I thought I might switch to "0.0.1" > "0.0.2" which also worked, but now from "0.0.2" > "0.0.3" it says no update available. I double-checked that I had a new bin file and also updated the json file
Would it do an update if the json states a new version but the bin is still the old?

version 0.0.2

esp32FOTA esp32FOTA("esp32-fota-http", "0.0.2", false, true);
{
  "type": "esp32-fota-http",
  "version": "0.0.2",
  "url": "https://raw.githubusercontent.com/user/repo/main/firmware.bin"
}

version 0.0.3

esp32FOTA esp32FOTA("esp32-fota-http", "0.0.3", false, true);
{
  "type": "esp32-fota-http",
  "version": "0.0.3",
  "url": "https://raw.githubusercontent.com/user/repo/main/firmware.bin"
}

Is there any more information about the versioning? Any limits? And would it be possible to start back at version "0.0.1" after some upgrades for testing?

  1. Question
    Is there a way to download the firmware from a private repo on GitHub or, in general, any server where you have to perform some authorization?

  2. Question
    Do you maybe have some instructions on getting those certificate files and how you include them in your examples?

Thanks a lot and also again for the lib. If I now get it to work every time, I'm completely happy. :)

@kiliw
Copy link
Author

kiliw commented Jun 2, 2022

mhm now I can't even get the versions 1 > 2 working... My understanding so far was, and please correct me if I'm wrong. The json file states a version and the location to this versions .bin file. So whenever the esp starts and checks for updates and finds a version number greater than it's current one e.g the 2 here

esp32FOTA esp32FOTA("esp32-fota-http", 2, false, true);

it should performe an update? or does it compare somehow the bin file with its existing code?

@tobozo tobozo mentioned this issue Sep 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant