-->
Page 1 of 2

HTTP UPDATE problem with https

PostPosted: Mon Mar 12, 2018 9:08 pm
by lucasromeiro
Hi, I have an update routine from my program that takes the code from my website and burns!
but I updated my site and now it's https //
after that I can no longer update my program, even changing my command!

before I updated it like this:
t_httpUpdate_return ret = ESPhttpUpdate.update(http://vitaesolucoes.com.br/teste/Atualizacao.bin);

now I've changed to be correct, but it does not work!
t_httpUpdate_return ret = ESPhttpUpdate.update("https://vitaesolucoes.com.br/teste/Atualizacao.bin", "", "93 C0 16 C3 C7 64 72 6E 49 64 82 B9 97 DE 7E A6 18 D8 57 39");

accuse the error: HTTP_UPDATE_FAILD Error (-106): Verify Bin Header Failed

Hardware: ESP8266-12E (node mcu)
Arduino
v: 2.4.1

PostPosted: Tue Mar 13, 2018 7:44 pm
by lucasromeiro
with ip do not work

Re: HTTP UPDATE problem with https

PostPosted: Mon Mar 19, 2018 12:34 pm
by lucasromeiro
Anyone can help me?? PLEASE!!

Re: HTTP UPDATE problem with https

PostPosted: Mon Mar 19, 2018 12:49 pm
by martinayotte
ESPhttpUpdate is using ESP8266HTTPClient which is using WiFiClient not WiFiSecureClient, therefore no HTTPS ...
You will need to create some kind of ESP8266HTTPSecureClient along with ESPhttpsUpdate to do that.