chrisjoyce911 / esp32FOTA

Experiments in firmware OTA updates for ESP32 dev boards
The Unlicense
363 stars 89 forks source link

fix url assembly in forceUpdate #160

Open womoak75 opened 2 weeks ago

womoak75 commented 2 weeks ago

in method

bool esp32FOTA::forceUpdate(const char* firmwareHost, uint16_t firmwarePort, const char*  firmwarePath, bool validate )

url assembly was missing a '://' between protocol and host part.

forceUpdate("update.myhost.com", 80, "/firmware.bin", true)  

resulted in

"httpupdate.myhost.com:80/firmware.bin"

instead of

"http://update.myhost.com:80/firmware.bin"