the answer is on the link "..., but there is ESP8266httpUpdate library, where the esp8266 checks some url if there is new firmware available for download."
the answer is on the link "..., but there is ESP8266httpUpdate library, where the esp8266 checks some url if there is new firmware available for download."