JAndrassy / ArduinoOTA

Arduino library to upload sketch over network to Arduino board with WiFi or Ethernet libraries
GNU Lesser General Public License v2.1
437 stars 89 forks source link

OTASketchDownload partitions #144

Closed Bluebird-Software closed 2 years ago

Bluebird-Software commented 2 years ago

I use the OTASketchDownload.ino example to update via a HTTP server. The file is being downloaded successfully and the update works.

I have the next partitions:

Is the update being downloaded to the otadata partition? How does this libary work

JAndrassy commented 2 years ago

the esp32 Update library is used to store and apply the update binary. I recommend you to use it directly

Bluebird-Software commented 2 years ago

So how would you suggest the partitions. Do i need otadata and app0 and app1? or just 1 big app0 partition?

And what happens if i cancel the download in the middle of the process. The half downloaded file will stay on the main partition and will fill the partition? (If i cancel it 5 times, i have the sum of 5 times the downloaded part?)

JAndrassy commented 2 years ago

see the esp32 Update library

Bluebird-Software commented 2 years ago

A little help would be appreciated. You mean this? https://github.com/espressif/arduino-esp32/tree/master/libraries/Update

How do i get the answer to my question?

JAndrassy commented 2 years ago

I don't know anything about esp32 partitions and it has nothing to do with my ArduinoOTA library