ESP8266/Arduino IDE , server->on for httpwebupdater
Posted: Sun Aug 28, 2016 9:58 pm
Hello people. I have a project where I'm using a ESP 8266 (NodeMCU V1.0) with code from the SDWebServer, WifiManager and HTTPUpdate Server library. I am trying to activate the update process on pressing a button on my index Web page on the SD card.
On the Button Action I have put "/update". In the Code I have
server.on("/update", [](){
Serial.println("Updating...") ;
httpUpdater.setup(&server);
});
Where httpUpdater has been defined as - ESP8266HTTPUpdateServer httpUpdater;
On entering 192.168.xx.xx/update my Serial port responds as "Updating ......" but nothing happens on the Server. I expected it to display the "Browse button and the Uplod button" as in the WebUpdater example sketch
Obviously I am doing something silly. What is it I should do ?
Regards
On the Button Action I have put "/update". In the Code I have
server.on("/update", [](){
Serial.println("Updating...") ;
httpUpdater.setup(&server);
});
Where httpUpdater has been defined as - ESP8266HTTPUpdateServer httpUpdater;
On entering 192.168.xx.xx/update my Serial port responds as "Updating ......" but nothing happens on the Server. I expected it to display the "Browse button and the Uplod button" as in the WebUpdater example sketch
Obviously I am doing something silly. What is it I should do ?
Regards