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

Error while compiling HTTP example #116

Closed
milkywade opened this issue Dec 7, 2022 · 4 comments · Fixed by #117
Closed

Error while compiling HTTP example #116

milkywade opened this issue Dec 7, 2022 · 4 comments · Fixed by #117

Comments

@milkywade
Copy link

milkywade commented Dec 7, 2022

Hi - using last version 0.2.5, trying to compile the following example:

https://github.com/chrisjoyce911/esp32FOTA/blob/master/examples/HTTP/HTTP.ino

against this fota

{
    "type": "test_1",
    "version": "1",
    "url": "http://192.168.1.100/ota/test_1-version-1.bin"
}

returns the following message on the terminal (using platform.io):

[353940][E][HTTPClient.cpp:257] beginInternal(): failed to parse protocol
[353940][E][HTTPClient.cpp:257] beginInternal(): failed to parse protocol

P.S. the command executed (once - resulting in two error lines) is
bool updatedNeeded = esp32FOTA.execHTTPcheck();

@milkywade
Copy link
Author

taking the "s from the version number results in the same error

@milkywade
Copy link
Author

milkywade commented Dec 7, 2022

Tried several changes from the HTTP example, with no success:

  1. changing the include statement to (as per the example on the main github page)
    #include <esp32fota.hpp>

  2. changing the version to a string, with three sub-versions, in this line:
    esp32FOTA esp32FOTA("test_1", "1.0.0");

  3. using the esp32FOTA.handle(); shortcut in the loop() section

...any ideas ?

@tobozo tobozo mentioned this issue Dec 8, 2022
@tobozo
Copy link
Collaborator

tobozo commented Dec 8, 2022

fixed in 0.2.6, will propagate soon in the Arduino Library Manager

@milkywade
Copy link
Author

merci!

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.

2 participants