-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
OTA update from github url #1021
Comments
I think the short answer is no. |
github.io shut work it allow http requests. more info here: |
@mmiscool yup, pretty much what @sticilface said.
Sorry but i don't think we can do anything about this issue given the RAM available to us on the ESP8266. Also unfortunately most TLS servers don't support TLS fragment size negotiation (that's an extension to TLS protocol), so we can't make them switch to smaller fragment sizes. |
Okay, spoke too soon. |
Just tested this. Turned the code in to function. Minimal modifications to remove the wifi connecting stuff as that is already handled in the sketch. Added this function. ''' // Use web browser to view and copy const char* url = "/esp8266/Basic/master/Flasher/Build/4M/ESP8266Basic.cpp.bin"; bool BasicOTAupgrade() // Use WiFiClientSecure class to create TLS connection if (client.verify(fingerprint, host)) { Serial.print("Starting OTA from: "); auto ret = ESPhttpUpdate.update(client, host, url); I get the following output on the serial terminal. connecting to raw.githubusercontent.com Soft WDT reset ctx: cont
|
Looks like you are running out of RAM. Check with nothing except this function in your sketch (i.e. no SPIFFS, no web server). |
check out the new API of ESPhttpUpdate now it shut work with one line like this: |
Hello,
Git hub seems to do every thing over https and i was hoping to use the ota functionality to download from there. Is there a way to make ota work over https or a methos to get a regular http download from git hub?
The text was updated successfully, but these errors were encountered: