The title says it all, I have an MKR1000 with which i want to do OTA updates from a C++ server. I figured i could just push the file to the MKR, who then would store it into an SD card and update itself from that SD card. It is possible right? How would i do that?
Arduino's WiFi101OTA library has an example that demonstrates doing this:
dfontaine:
The title says it all, I have an MKR1000 with which i want to do OTA updates from a C++ server. I figured i could just push the file to the MKR, who then would store it into an SD card and update itself from that SD card. It is possible right? How would i do that?
with InternalStorage object of the WiFi101OTA library, you can store the downloaded bin right into the flash memory and then call apply() to apply it and reset
I should have specified...
I can't use the Arduino IDE to do this, i'm pushing from a custom c++ server.
From my extensive research, i've come to the conclusion that i need to turn my SD into a bootloader (which i don't have nor have any idea how to make one).
The WiFi101OTA library works fine, IF you stay in the IDE, otherwise it is completely useless becasue i need the >tools>ports>network ports to have it work
dfontaine:
I should have specified...
I can't use the Arduino IDE to do this, i'm pushing from a custom c++ server.
From my extensive research, i've come to the conclusion that i need to turn my SD into a bootloader (which i don't have nor have any idea how to make one).The WiFi101OTA library works fine, IF you stay in the IDE, otherwise it is completely useless becasue i need the >tools>ports>network ports to have it work
save the bin to file to SD and use the SDU library in sketch
Is it only compatible with the ProtoShield?
I'm using the Adafruit MicroSD breakoutboard, on the instructions for the board they say to use pin 10 for CS but 10 is MISO on the MKR1000