I worked with NodeMCU esp8266 boards and i have option to upload sketch remotely by upload bin file to web server that run on the NodeMCU (My MCU projects are on the internet and i have connection to the mcu only by IP Address)
with libraries:
<WiFiClient.h>
<ESP8266WebServer.h>
<ESP8266HTTPUpdateServer.h>
Now i have Arduino MKR WiFi 1010 (Better MCU than NodeMCU and more expensive) that work with WiFiNINA library and i didn't found any solution for doing the same thing
"Upload sketch remotely by web server uploading"
Can you send me the information how to do it with command line ?
upload from IDE is not an option for me because the mcu is not on the same network subnet like my pc with IDE, and i know that IDE OTA is only works on the same network subnet and not by manual IP or maybe i`m wrong ?
I tried to run the command and this is the results
Connecting to board ... done
Uploading sketch ... done
Flashing sketch ... done
Error flashing the sketch:
How can i know why i get the Error ?
is there any log file ?
I used WiFi101_OTA.ino from the examples and change the WiFi101 library with the WiFiNINA library (i think this is the recommended library for MKR WiFi 1010)
RapidL:
I tried to run the command and this is the results
Connecting to board ... done
Uploading sketch ... done
Flashing sketch ... done
Error flashing the sketch:
How can i know why i get the Error ?
is there any log file ?
I used WiFi101_OTA.ino from the examples and change the WiFi101 library with the WiFiNINA library (i think this is the recommended library for MKR WiFi 1010)
it happens. What version of the upload tool do you have?
add some timestamp or versioning in the sketch to see if it was updated