Hello to everyone!!
i have a question about the HTTP UPDATE example
i am trying to update via FOTA with the HTTPUPDATE example
in the following line:
t_httpUpdate_return ret = ESPhttpUpdate.update(“http://server/file.bin”);
i tried writing a direct link to my file that i place in dropbox : https://www.dropbox.com/s/6okhpgdi33kk6 … k.bin?dl=0
the browser on my pc downloads the file with no problem when i am logged in but the esp gives me an error:
HTTP_UPDATE_FAILD Error (-1):HTTP error: connection refused
my question how it can be acheived?
maybe using some other file hosting?
Hi thank you very much for the fast reply.
i a =m not familiar at all with node.js and the whole concept but i will try to dig a little
but maybe you can answer me why it cant be achieved with my method
maybe the esp can login in to dropbox and then download the file
cause i saw an example on youtube and there is no special server side handling but its worth to mention that the server is a simple HTTP server and a direct URL link to the file in the example.
@Oleg_Pugach for https url’s you need to include the fingerprint in the ESPhttpUpdate call and the bin file must be directly accessible from the url (no redirects).
If you don’t know how to get direct links you are going to struggle. USE GitHub as your initial test.
https://www.grc.com/fingerprints.htm will give you the fingerprint. Take care not to copy any invisible characters when you cut and paste the fingerprint into your sketch.
Chrome recently changed the location of the fingerprint.
Older version click on the green padlock, newer version, right click in the browser, then inspect and then the security tab etc.