-->
Page 5 of 6

Re: OTA update over internet

PostPosted: Tue Oct 17, 2017 2:49 pm
by PeteKnight
martinayotte wrote:HTTPS vs HTTP !!!
You need either to allow plain HTTP in your Web Hosting instead of HTTPS, or doing some change to ESP8266HTTPClient/ESP8266httpUpdate classes to allow HTTPS connections. The former is probably the easiest way ...

Exactly. I only use HTTP.

Pete.

Re: OTA update over internet

PostPosted: Fri Oct 20, 2017 9:56 am
by SuperNinja
PeteKnight wrote:
martinayotte wrote:HTTPS vs HTTP !!!
You need either to allow plain HTTP in your Web Hosting instead of HTTPS, or doing some change to ESP8266HTTPClient/ESP8266httpUpdate classes to allow HTTPS connections. The former is probably the easiest way ...

Exactly. I only use HTTP.

Pete.

Thanks PeteKnight & martinayotte
I note to use http , but why in the httpUpdate example code we can chose http or https ? :
Code: Select all t_httpUpdate_return ret = ESPhttpUpdate.update("http://server/file.bin");
        //t_httpUpdate_return  ret = ESPhttpUpdate.update("https://server/file.bin");


if i change https to http i got this error :
Code: Select all[SETUP] WAIT 4...
[SETUP] WAIT 3...
[SETUP] WAIT 2...
[SETUP] WAIT 1...
HTTP_UPDATE_FAILD Error (-104): Wrong HTTP code


000webhost.com is under https so how use it with http or transform to http ?

Re: OTA update over internet

PostPosted: Fri Oct 20, 2017 10:43 am
by martinayotte
SuperNinja wrote:I note to use http , but why in the httpUpdate example code we can chose http or https ? :

Nope ! This line commented out is there since initial commit in Nov 2015, but probably left here unintentionally, probably Links2004 was doing a test, but he forgot to remove this line before his commit.

Re: OTA update over internet

PostPosted: Tue Nov 20, 2018 2:58 am
by ahmed95
hello
I would like to know if this http update would be applicable using esp8266 module and arduino nano

thank you