webserver to ota
Posted: Wed Dec 19, 2018 2:35 pm
Hi all,
I want to ota update by uploading file from webserver.
here is my html code for webserver->>
I upload bin file from webserver but dont know how to recieve it and use for ota update.
I used it with netconn_recv();
I want to ota update by uploading file from webserver.
here is my html code for webserver->>
Code: Select all
"<!DOCTYPE html>"
"<html>"
"<body>"
"<form action=\"/cf\" method=\"post\" enctype=\"multipart/form-data\">"
"Select image to upload:"
"<input type=\"file\" name=\"fileToUpload\" id=\"fileToUpload\">"
"<input type=\"submit\" value=\"Upload Image\" name=\"submit\">"
"</form>"
"</body>"
"</html>";
I used it with netconn_recv();