[{"data":1,"prerenderedAt":806},["ShallowReactive",2],{"post-esp32-ota-update-methods-compared-en":3,"related-posts-esp32-ota-update-methods-compared-en":764,"related-categories-esp32-ota-update-methods-compared-en":792},{"id":4,"title":5,"author":6,"authorImageUrl":7,"authorUrl":8,"body":9,"categorySlug":726,"categoryText":727,"dateModified":728,"datePublished":728,"description":729,"extension":730,"faqs":731,"image":747,"imageAlt":748,"language":749,"meta":750,"navigation":751,"path":752,"seo":753,"sitemap":754,"stem":755,"summary":756,"tags":757,"__hash__":763},"blog\u002Fblog\u002Fesp32-ota-update-methods-compared.md","ESP32 OTA Updates Compared: Web, GitHub, HTTPS Pull","Mauro Brambilla","\u002Fimages\u002Fauthors\u002Fbruma.jpg","\u002Fabout",{"type":10,"value":11,"toc":707},"minimark",[12,21,24,29,40,43,60,64,67,74,80,85,110,121,149,153,176,188,196,200,230,233,237,245,249,252,313,327,330,334,342,348,352,391,399,403,406,410,431,445,457,502,527,531,577,583,590,621,624,629,633,645,670,673,677,696],[13,14,15,16,20],"p",{},"An ",[17,18,19],"strong",{},"ESP32 OTA update"," replaces the running firmware over Wi-Fi: the chip writes the new image into the spare one of two OTA app partitions, then reboots into it. You can push the .bin from your computer (ArduinoOTA), upload it through a page on the board, or let the board pull it over HTTPS from a server or GitHub Releases. All three need a partition table with two app slots.",[13,22,23],{},"This post compares those methods, plus plain USB flashing, on effort, security, rollback and flash cost. The OTA facts come from the ESP-IDF and Arduino-ESP32 documentation and source, linked inline. The OpenGizmo facts come from the three firmware repositories, which I read for this post. I did not run any of the OTA methods on hardware, so nothing here is a benchmark.",[25,26,28],"h2",{"id":27},"how-does-an-esp32-ota-update-work","How does an ESP32 OTA update work?",[13,30,31,32,39],{},"OTA means over-the-air: the firmware that is already running receives the next firmware and installs it. Espressif's ",[33,34,38],"a",{"href":35,"rel":36},"https:\u002F\u002Fdocs.espressif.com\u002Fprojects\u002Fesp-idf\u002Fen\u002Flatest\u002Fesp32\u002Fapi-reference\u002Fsystem\u002Fota.html",[37],"nofollow","OTA documentation"," says the OTA functions write the new image to the slot that is not selected for boot, and only after it is verified does the OTA data partition get updated to say that this image should be used for the next boot.",[13,41,42],{},"That design is why an interrupted download is harmless: the running app is never touched. The docs set one limit on it. The safe path covers applications. The bootloader, the partition table and data partitions are an \"unsafe update\" in the same page, because a power cut during the final copy can break the device.",[13,44,45,46,50,51,54,55,59],{},"The minimum layout, in the same page, is \"at least two OTA app slot partitions (i.e., ",[47,48,49],"code",{},"ota_0"," and ",[47,52,53],{},"ota_1",") and an OTA Data Partition\". The ",[33,56,58],{"href":57},"\u002Fblog\u002Fesp32-partition-table-explained","partition table guide"," shows the whole flash map. For this comparison, the one number that matters is the slot size, because the new image has to fit in a slot that is not the one you are running from.",[25,61,63],{"id":62},"arduinoota-vs-web-upload-vs-https-pull-which-one","ArduinoOTA vs web upload vs HTTPS pull: which one?",[13,65,66],{},"The difference is who starts the transfer and where the .bin comes from. Here are the four ways side by side.",[13,68,69],{},[70,71],"img",{"alt":72,"src":73},"Four cards, ArduinoOTA, web upload, HTTPS pull and USB flash, showing who starts each update and which three need two OTA slots","\u002Fimages\u002Fblog\u002Fesp32-ota-update-methods-compared-paths.webp",[75,76],"blog-table",{":headers":77,":rows":78,":highlightCol":79},"[\"Method\",\"Who starts it\",\"Network\",\"Two OTA slots\",\"Protection out of the box\"]","[[\"ArduinoOTA\",\"Your computer, with espota.py or PlatformIO\",\"Same LAN, found by IP or mDNS\",\"Yes\",\"Optional password; plain TCP transfer\"],[\"Web upload\",\"You, in a browser\",\"Same LAN, HTTP page on the board\",\"Yes\",\"None, or the basic auth you add\"],[\"HTTPS pull\",\"The board, on a timer or a button\",\"Any network that reaches the server\",\"Yes\",\"TLS, if you give it a certificate\"],[\"USB re-flash\",\"You, with a cable\",\"None\",\"No\",\"Physical access\"]]","-1",[81,82,84],"h3",{"id":83},"arduinoota-push-from-your-computer","ArduinoOTA: push from your computer",[13,86,87,88,93,94,97,98,101,102,105,106,109],{},"The ",[33,89,92],{"href":90,"rel":91},"https:\u002F\u002Fgithub.com\u002Fespressif\u002Farduino-esp32\u002Fblob\u002Fmaster\u002Flibraries\u002FArduinoOTA\u002Fsrc\u002FArduinoOTA.cpp",[37],"ArduinoOTA library"," in the Arduino-ESP32 core listens on port 3232 by default and names the board ",[47,95,96],{},"esp32-"," plus its MAC address unless you call ",[47,99,100],{},"setHostname()",". A tool sends a UDP invitation, and the board opens a TCP connection back to the computer to pull the image. You must call ",[47,103,104],{},"handle()"," in ",[47,107,108],{},"loop()",", or the board never answers.",[13,111,112,113,120],{},"The password is hashed with SHA-256 and checked in a challenge-response with PBKDF2-HMAC-SHA256, according to the source. The image itself arrives over plain TCP as far as the source shows, with an MD5 check for integrity only. mDNS is on by default, which is convenient and also the place where ",[33,114,116,119],{"href":115},"\u002Fblog\u002Fesp32-mdns-local-hostname-not-working",[47,117,118],{},".local"," names fail on Android"," and some routers.",[13,122,123,124,129,130,50,133,136,137,105,140,143,144,148],{},"PlatformIO supports it directly. Its ",[33,125,128],{"href":126,"rel":127},"https:\u002F\u002Fdocs.platformio.org\u002Fen\u002Flatest\u002Fplatforms\u002Fespressif32.html",[37],"Espressif 32 docs"," say to set ",[47,131,132],{},"upload_protocol = espota",[47,134,135],{},"upload_port"," to the IP address or the mDNS name, with ",[47,138,139],{},"--auth",[47,141,142],{},"upload_flags"," for the password. If you are choosing a toolchain too, ",[33,145,147],{"href":146},"\u002Fblog\u002Farduino-ide-vs-platformio-for-esp32","Arduino IDE vs PlatformIO"," covers the trade.",[81,150,152],{"id":151},"web-upload-a-page-on-the-board","Web upload: a page on the board",[13,154,155,156,161,162,165,166,169,170,50,173,175],{},"A web updater serves an upload form from the ESP32. Espressif's ",[33,157,160],{"href":158,"rel":159},"https:\u002F\u002Fdocs.espressif.com\u002Fprojects\u002Farduino-esp32\u002Fen\u002Flatest\u002Fota_web_update.html",[37],"OTA web update page"," walks through the ",[47,163,164],{},"OTAWebUpdater"," example: browse to ",[47,167,168],{},"http:\u002F\u002Fesp32.local",", log in with the default ",[47,171,172],{},"admin",[47,174,172],{},", and pick the compiled binary. The page says the board and the computer must be on the same network, and it says nothing about changing that login.",[13,177,178,183,184,187],{},[33,179,182],{"href":180,"rel":181},"https:\u002F\u002Fgithub.com\u002Fayushsharma82\u002FElegantOTA",[37],"ElegantOTA"," wraps the same idea in a nicer page. Its free edition does firmware and filesystem updates, MD5 verification and optional HTTP basic auth, under the AGPL-3.0 license. Auto update and direct download are Pro features. With ESPAsyncWebServer you need the ",[47,185,186],{},"ELEGANTOTA_USE_ASYNC_WEBSERVER=1"," build flag, and the README warns that you cannot run the synchronous and the async server in one firmware.",[13,189,190,191,195],{},"The weak point is plain HTTP. A password typed into an HTTP form crosses your Wi-Fi unencrypted, the same limit an open captive portal has, as the ",[33,192,194],{"href":193},"\u002Fblog\u002Fesp32-wifi-provisioning-methods-compared","provisioning comparison"," explains. On a home LAN that may be acceptable. On a shared network it is not.",[81,197,199],{"id":198},"https-pull-the-board-fetches-the-image","HTTPS pull: the board fetches the image",[13,201,202,203,210,211,214,215,50,218,221,222,225,226,229],{},"With a pull, the board decides when to update. In ESP-IDF, ",[33,204,207],{"href":205,"rel":206},"https:\u002F\u002Fdocs.espressif.com\u002Fprojects\u002Fesp-idf\u002Fen\u002Flatest\u002Fesp32\u002Fapi-reference\u002Fsystem\u002Fesp_https_ota.html",[37],[47,208,209],{},"esp_https_ota()"," does it in one call from a URL, and ",[47,212,213],{},"esp_https_ota_begin()",", ",[47,216,217],{},"perform()",[47,219,220],{},"finish()"," give you control over the loop. In the Arduino core, ",[47,223,224],{},"HTTPUpdate"," does the same job. It sends the current version as an ",[47,227,228],{},"x-ESP32-version"," header, and treats a 204 or 304 answer as \"no update\", so a server can decide what to send.",[13,231,232],{},"This is the only method that works across the internet and needs no one nearby. It is also the one where the security details matter most, so they get their own section below.",[81,234,236],{"id":235},"usb-re-flash-no-ota-at-all","USB re-flash: no OTA at all",[13,238,239,240,244],{},"A USB flash needs only one app slot, the board in reach and a cable. It is what the ",[33,241,243],{"href":242},"\u002Fblog\u002Fesp-web-tools-flash-esp32-from-browser","browser flasher"," does, and I come back to it with the OpenGizmo numbers below.",[25,246,248],{"id":247},"how-do-you-update-an-esp32-from-github-releases","How do you update an ESP32 from GitHub Releases?",[13,250,251],{},"GitHub Releases is a free place to host versioned .bin files, and the board can fetch them with an HTTPS pull. Three details decide whether it works.",[253,254,255,270,301],"ol",{},[256,257,258,261,262,265,266,269],"li",{},[17,259,260],{},"Upload the app image, not the merged flash."," An OTA writes one app image into a slot, so upload the app alone. A merged file also holds the bootloader and the partition table, which are not an app image. OpenGizmo's releases already publish the app alone as ",[47,263,264],{},"release-firmware.bin",", next to the bootloader, partition table and ",[47,267,268],{},"boot_app0"," parts.",[256,271,272,275,276,281,282,287,288,291,292,296,297,300],{},[17,273,274],{},"Expect a redirect."," GitHub's ",[33,277,280],{"href":278,"rel":279},"https:\u002F\u002Fdocs.github.com\u002Fen\u002Frest\u002Freleases\u002Fassets",[37],"release asset docs"," say clients should handle both a 200 and a 302 response. HTTPUpdate's constructor disables redirects by default, according to the ",[33,283,286],{"href":284,"rel":285},"https:\u002F\u002Fgithub.com\u002Fespressif\u002Farduino-esp32\u002Fblob\u002Fmaster\u002Flibraries\u002FHTTPUpdate\u002Fsrc\u002FHTTPUpdate.cpp",[37],"source",", so a 302 fails the update until you call its ",[47,289,290],{},"setFollowRedirects()"," method. In ESP-IDF, the ",[33,293,295],{"href":205,"rel":294},[37],"HTTPS OTA docs"," add that the CA certificates of redirect targets must also be in ",[47,298,299],{},"cert_pem",".",[256,302,303,306,307,312],{},[17,304,305],{},"Mind the rate limit."," The REST API allows ",[33,308,311],{"href":309,"rel":310},"https:\u002F\u002Fdocs.github.com\u002Fen\u002Frest\u002Fusing-the-rest-api\u002Frate-limits-for-the-rest-api",[37],"60 requests per hour per IP address"," without authentication. I did not verify whether plain asset downloads count against it, so poll rarely, once a day is plenty for a desk gadget.",[13,314,315,316,319,320,322,323,326],{},"A cleaner design splits the check from the download: poll a tiny version file, and fetch the .bin only when the number is higher. The release API also lists a SHA-256 ",[47,317,318],{},"digest"," for each asset. For the Ticker's ",[47,321,264],{}," it prints ",[47,324,325],{},"sha256:647b987e...",", which I read from the API on November 14, 2026, so a board could compare it with the digest of what it wrote.",[13,328,329],{},"I am not publishing a code sample here, because I did not compile one for this post. The API calls above are in the linked docs, and each has an example.",[25,331,333],{"id":332},"what-partition-layout-does-ota-need","What partition layout does OTA need?",[13,335,336,337,300],{},"OTA needs an OTA data partition and two OTA app slots, each big enough for your app. Slot size is where projects get caught. The Arduino-ESP32 core ships several tables, and I read their definitions to compare them with a real firmware: the Gizmo Ticker v1.2.0 app, which is 1,796,736 bytes according to its ",[33,338,341],{"href":339,"rel":340},"https:\u002F\u002Fgithub.com\u002Fopen-gizmo\u002Fgizmo-ticker\u002Freleases\u002Ftag\u002Fv1.2.0",[37],"GitHub release",[13,343,344],{},[70,345],{"alt":346,"src":347},"Bars comparing the 1.71 MiB Gizmo Ticker app with the app slot of four partition tables: default.csv is too small, three others fit","\u002Fimages\u002Fblog\u002Fesp32-ota-update-methods-compared-slots.webp",[75,349],{":headers":350,":rows":351},"[\"Table (Arduino-ESP32 core)\",\"App slots\",\"Slot size (bytes)\",\"Slot size (MiB)\",\"Fits the 1,796,736 B app?\"]","[[\"huge_app.csv\",\"1 (ota_0)\",\"0x300000 = 3,145,728\",\"3.00\",\"Yes, but no second slot\"],[\"default.csv\",\"2\",\"0x140000 = 1,310,720\",\"1.25\",\"No\"],[\"min_spiffs.csv\",\"2\",\"0x1E0000 = 1,966,080\",\"1.88\",\"Yes, with 169,344 B to spare\"],[\"default_8MB.csv\",\"2\",\"0x330000 = 3,342,336\",\"3.19\",\"Yes, needs 8 MB of flash\"]]",[13,353,354,355,214,362,214,369,50,376,383,384,387,388,390],{},"The definitions are in the core's ",[33,356,359],{"href":357,"rel":358},"https:\u002F\u002Fgithub.com\u002Fespressif\u002Farduino-esp32\u002Fblob\u002Fmaster\u002Ftools\u002Fpartitions\u002Fdefault.csv",[37],[47,360,361],{},"default.csv",[33,363,366],{"href":364,"rel":365},"https:\u002F\u002Fgithub.com\u002Fespressif\u002Farduino-esp32\u002Fblob\u002Fmaster\u002Ftools\u002Fpartitions\u002Fmin_spiffs.csv",[37],[47,367,368],{},"min_spiffs.csv",[33,370,373],{"href":371,"rel":372},"https:\u002F\u002Fgithub.com\u002Fespressif\u002Farduino-esp32\u002Fblob\u002Fmaster\u002Ftools\u002Fpartitions\u002Fdefault_8MB.csv",[37],[47,374,375],{},"default_8MB.csv",[33,377,380],{"href":378,"rel":379},"https:\u002F\u002Fgithub.com\u002Fespressif\u002Farduino-esp32\u002Fblob\u002Fmaster\u002Ftools\u002Fpartitions\u002Fhuge_app.csv",[37],[47,381,382],{},"huge_app.csv",". All four keep ",[47,385,386],{},"nvs"," at 0x9000 with 0x5000 bytes and the first app at 0x10000. The ",[33,389,58],{"href":57}," lists these and the other schemes in full. The default table's 1.25 MiB slots are the trap: a firmware with a TLS stack, an async web server and a web app inside it can be larger than that, and the update fails.",[13,392,393,394,398],{},"Two more rules from Espressif's ",[33,395,58],{"href":396,"rel":397},"https:\u002F\u002Fdocs.espressif.com\u002Fprojects\u002Fesp-idf\u002Fen\u002Flatest\u002Fesp32\u002Fapi-guides\u002Fpartition-tables.html",[37],": app partitions must sit on 64 KB (0x10000) boundaries, and the OTA data partition is 0x2000 bytes. Changing the table is itself outside the safe OTA path, so moving from a one-slot table to a two-slot table is a one-time USB flash.",[25,400,402],{"id":401},"how-do-you-make-ota-safe-https-signing-and-rollback","How do you make OTA safe: HTTPS, signing and rollback?",[13,404,405],{},"Four separate protections exist, and each answers a different question: is this the right server, is the image mine, is it bad, and is it older than what I already run.",[75,407],{":headers":408,":rows":409},"[\"Question\",\"Mechanism\",\"What it needs\",\"What it does not do\"]","[[\"Is this the right server?\",\"TLS with cert_pem or the certificate bundle\",\"A root certificate in flash, or crt_bundle_attach\",\"Does not prove the file is yours\"],[\"Is this image mine?\",\"Signed images: Secure Boot v2, or the software-only signature check\",\"A signing key; Secure Boot v2 burns eFuses\",\"Software-only mode does not stop an attacker who can write flash\"],[\"Is this image bad?\",\"Rollback to the previous OTA slot\",\"Two slots, a bootloader built with the rollback option\",\"Only OTA slots roll back, not a factory app\"],[\"Is this image older?\",\"Anti-rollback with a secure version in eFuse\",\"A security version in the app, checked against eFuse\",\"Cannot be undone once the eFuse is written\"]]",[13,411,412,415,416,418,419,422,423,426,427,430],{},[17,413,414],{},"Server check."," The ESP-IDF page says the root certificate in PEM format goes into ",[47,417,299],{},", and recommends the server's root, not an intermediate, because roots last longest. It also says an unset transport defaults to TLS, so an ",[47,420,421],{},"http:\u002F\u002F"," URL fails unless ",[47,424,425],{},"CONFIG_ESP_HTTPS_OTA_ALLOW_HTTP"," is enabled. Alternatively, ",[47,428,429],{},"crt_bundle_attach"," verifies against the ESP x509 Certificate Bundle.",[13,432,433,434,105,437,444],{},"This matters for OpenGizmo's own code. The Gizmo Ticker's market-data client calls ",[47,435,436],{},"clientSecure.setInsecure()",[33,438,441],{"href":439,"rel":440},"https:\u002F\u002Fgithub.com\u002Fopen-gizmo\u002Fgizmo-ticker\u002Fblob\u002Fmain\u002Fmicrocontroller\u002Fsrc\u002Fapi\u002Fapi.cpp",[37],[47,442,443],{},"api.cpp",", which encrypts the traffic but accepts any certificate. That is a fair trade for a coin price. It would be a bad one for firmware, because anyone who can impersonate the server on your network could send code. An OTA client must verify the server.",[13,446,447,450,451,456],{},[17,448,449],{},"Signing."," Espressif's ",[33,452,455],{"href":453,"rel":454},"https:\u002F\u002Fdocs.espressif.com\u002Fprojects\u002Fesp-idf\u002Fen\u002Flatest\u002Fesp32\u002Fsecurity\u002Fsecure-boot-v2.html",[37],"Secure Boot v2 page"," says the app is verified on each OTA update, and that on the classic ESP32 Secure Boot v2 needs chip revision v3.0 or later. It enables itself through eFuses, so plan the keys first. The software-only mode checks signatures during OTA, and the page warns it gives no protection against an attacker with write access to flash.",[13,458,459,462,463,466,467,471,472,475,476,483,484,50,487,490,491,494,495,50,498,501],{},[17,460,461],{},"Rollback."," ESP-IDF's rollback is a bootloader option, ",[47,464,465],{},"CONFIG_BOOTLOADER_APP_ROLLBACK",", which the ",[33,468,470],{"href":35,"rel":469},[37],"OTA page"," says is enabled by default in ESP-IDF. A new image starts in the pending-verify state, and if the app never calls ",[47,473,474],{},"esp_ota_mark_app_valid_cancel_rollback()",", the bootloader skips it on the next boot. Arduino-ESP32's startup code in ",[33,477,480],{"href":478,"rel":479},"https:\u002F\u002Fgithub.com\u002Fespressif\u002Farduino-esp32\u002Fblob\u002Fmaster\u002Fcores\u002Fesp32\u002Fesp32-hal-misc.c",[37],[47,481,482],{},"esp32-hal-misc.c"," has hooks for this, ",[47,485,486],{},"verifyOta()",[47,488,489],{},"verifyRollbackLater()",". I did not verify whether the prebuilt Arduino bootloader has rollback enabled, so check your own build before relying on it. The core's ",[47,492,493],{},"Update"," class also has ",[47,496,497],{},"canRollBack()",[47,499,500],{},"rollBack()"," to boot the other slot by hand.",[13,503,504,505,510,511,514,515,518,519,522,523,300],{},"ESPHome takes the managed route: its ",[33,506,509],{"href":507,"rel":508},"https:\u002F\u002Fesphome.io\u002Fcomponents\u002Fota\u002F",[37],"OTA component"," offers an ",[47,512,513],{},"esphome"," platform, a ",[47,516,517],{},"web_server"," platform and an ",[47,520,521],{},"http_request"," platform that pulls from a server, with safe mode enabled automatically. If you would rather not build any of this, see ",[33,524,526],{"href":525},"\u002Fblog\u002Fesphome-vs-custom-esp32-firmware","ESPHome vs custom firmware",[25,528,530],{"id":529},"does-opengizmo-use-ota","Does OpenGizmo use OTA?",[13,532,533,534,537,538,214,541,214,544,214,546,50,549,552,553,557,558,562,563,567,568,571,572,300],{},"No. I searched the three firmware repositories and the ",[47,535,536],{},"gizmo-common"," versions they pin (v2.5.1 for the Ticker and the Reolink Switch, v2.4.0 for the Camera) for ",[47,539,540],{},"ota",[47,542,543],{},"ArduinoOTA",[47,545,224],{},[47,547,548],{},"Update.h",[47,550,551],{},"esp_ota",", and found no OTA code on November 14, 2026. The ",[33,554,556],{"href":555},"\u002Fprojects\u002Fgizmo-ticker","Gizmo Ticker",", the ",[33,559,561],{"href":560},"\u002Fprojects\u002Fgizmo-reolink-switch","Gizmo Reolink Switch"," and the ",[33,564,566],{"href":565},"\u002Fprojects\u002Fgizmo-camera","Gizmo Camera"," all set ",[47,569,570],{},"board_build.partitions = huge_app.csv",", and the line's own comment says \"One 3 MB app slot (no wireless updates), the same in every OpenGizmo firmware\". You can read it in the ",[33,573,576],{"href":574,"rel":575},"https:\u002F\u002Fgithub.com\u002Fopen-gizmo\u002Fgizmo-ticker\u002Fblob\u002Fmain\u002Fmicrocontroller\u002Fplatformio.ini",[37],"Ticker's platformio.ini",[13,578,579],{},[70,580],{"alt":581,"src":582},"Two halves: a laptop updating an ESP32 board over USB with a check mark, and a cloud update to the same board stopped by an orange cross labeled no OTA","\u002Fimages\u002Fblog\u002Fesp32-ota-update-methods-compared-illustration.webp",[13,584,585,586,589],{},"Updates go over USB instead. Each project page has a card that flashes the latest release from the browser, as the ",[33,587,588],{"href":242},"ESP Web Tools guide"," shows. Three things make that work well here, and all are in the repositories:",[591,592,593,602,611],"ul",{},[256,594,595,598,599,601],{},[17,596,597],{},"The web app is inside the firmware."," ",[47,600,536],{}," serves it from assets built into the app image, so there is one file to update, not a separate filesystem image.",[256,603,604,607,608,610],{},[17,605,606],{},"Settings survive."," The flasher writes four parts and never erases the ",[47,609,386],{}," region, so a USB update keeps the saved Wi-Fi and settings.",[256,612,613,616,617,620],{},[17,614,615],{},"The version is visible."," Each build reports its version in ",[47,618,619],{},"\u002Fapi\u002Fdevice",", and the release workflow checks that the version is new before it publishes.",[13,622,623],{},"The cost is real: you need the board and a cable, and a board closed in its enclosure or mounted out of reach is a chore to update.",[13,625,626,627,300],{},"With one slot there is no room for an OTA anyway. The app sizes in the releases are 1,796,736 bytes (Ticker v1.2.0), 1,778,336 (Reolink Switch v1.2.0) and 1,722,192 (Camera v1.0.0), so none of them fits the 1.25 MiB slots of ",[47,628,361],{},[81,630,632],{"id":631},"how-would-ota-layer-on-top","How would OTA layer on top?",[13,634,635,636,641,642,644],{},"This is a plan, not something I built. The XIAO ESP32-S3 has 8 MB of flash according to ",[33,637,640],{"href":638,"rel":639},"https:\u002F\u002Fwiki.seeedstudio.com\u002Fxiao_esp32s3_getting_started\u002F",[37],"Seeed's wiki",", so ",[47,643,375],{}," gives two 3.19 MiB slots, with the Ticker and Reolink apps fitting in each. The Camera board's flash is something to check on your module first. The steps would be:",[253,646,647,654,660,667],{},[256,648,649,650,653],{},"Ship one release with the new partition table over USB, since the table is outside the safe OTA path. The flasher already writes ",[47,651,652],{},"release-partitions.bin"," at 0x8000.",[256,655,656,657,659],{},"Add an HTTPS pull that checks the release manifest or a version file, and downloads ",[47,658,264],{}," only when it is newer.",[256,661,662,663,666],{},"Verify the server with the certificate bundle, never ",[47,664,665],{},"setInsecure()",", and compare the asset's SHA-256.",[256,668,669],{},"Mark the new image valid only after the web server and Wi-Fi come up, so a bad image rolls back.",[13,671,672],{},"The price is that flash now holds two copies of the app, so the app area is shared between them, and that you must write code that decides when it is safe to reboot a device someone is looking at.",[25,674,676],{"id":675},"which-esp32-ota-method-should-you-use","Which ESP32 OTA method should you use?",[13,678,679,680,683,684,687,688,691,692,695],{},"Use ",[17,681,682],{},"ArduinoOTA with PlatformIO"," while you develop, because it removes the cable from the edit-and-test loop. Use a ",[17,685,686],{},"web upload page"," when someone else must update a few boards and you can protect the page. Use an ",[17,689,690],{},"HTTPS pull"," when many boards sit out of reach, and only with certificate checking, a size check and rollback in place. Use ",[17,693,694],{},"USB"," when the board is on your desk, the firmware is small and settings must survive, which is where OpenGizmo is today.",[13,697,698,699,702,703,706],{},"The limit of this comparison is that I read the docs and the source and ran none of the methods, so I have no timings, failure rates or power figures. The first thing to check on your own project is the slot size against your app. Then see how ",[33,700,701],{"href":242},"the flasher builds and uploads releases",", and read ",[33,704,705],{"href":57},"the partition table post"," before changing your table.",{"title":708,"searchDepth":709,"depth":709,"links":710},"",2,[711,712,719,720,721,722,725],{"id":27,"depth":709,"text":28},{"id":62,"depth":709,"text":63,"children":713},[714,716,717,718],{"id":83,"depth":715,"text":84},3,{"id":151,"depth":715,"text":152},{"id":198,"depth":715,"text":199},{"id":235,"depth":715,"text":236},{"id":247,"depth":709,"text":248},{"id":332,"depth":709,"text":333},{"id":401,"depth":709,"text":402},{"id":529,"depth":709,"text":530,"children":723},[724],{"id":631,"depth":715,"text":632},{"id":675,"depth":709,"text":676},"comparisons","Comparisons","2026-11-14T00:00:00Z","Compare ESP32 OTA update methods: ArduinoOTA, web upload, HTTPS pull from GitHub Releases and USB, with partition needs, security and rollback.","md",[732,735,738,741,744],{"question":733,"answer":734},"Can the ESP32 update itself from a GitHub release?","Yes, with an HTTPS pull. The board requests the release's .bin asset, which GitHub answers with a redirect, so the HTTP client must follow redirects, and it writes the file into the spare OTA slot. HTTPUpdate in the Arduino-ESP32 core has redirects off by default, so you must turn them on.",{"question":736,"answer":737},"How many partitions does an ESP32 OTA update need?","ESP-IDF requires an OTA data partition and at least two OTA app slots, ota_0 and ota_1. The update is written to the slot that is not running, and the OTA data partition then points the bootloader at it. A table with one app slot, such as huge_app.csv, cannot receive updates.",{"question":739,"answer":740},"What is the difference between ArduinoOTA and web OTA on the ESP32?","ArduinoOTA is pushed by a tool on your computer, espota.py or PlatformIO, to port 3232 after a UDP invitation. Web OTA is a page served by the ESP32 itself, where you pick a .bin in a browser. Both work on the same network and both need two OTA app slots.",{"question":742,"answer":743},"Is ESP32 OTA secure by default?","No. ArduinoOTA offers an optional password, Espressif's web updater example ships with admin and admin, and an HTTPS pull verifies the server only if you give it a certificate or the certificate bundle. Signed images need Secure Boot v2 or the software-only signature check described in ESP-IDF.",{"question":745,"answer":746},"Does ESP32 OTA support rollback?","Yes, in ESP-IDF, as a bootloader option. A new image starts as pending verification, and if the app never marks it valid, the bootloader boots the previous OTA slot. Only OTA partitions can be rolled back. Whether your Arduino build has the option on depends on its bootloader.","\u002Fimages\u002Fblog\u002Fesp32-ota-update-methods-compared.jpg","A browser window, a code folder, a cloud and a server rack around an ESP32 board with an orange progress ring and an OTA label, while a maker in glasses thinks.","en",{},true,"\u002Fblog\u002Fesp32-ota-update-methods-compared",{"title":5,"description":729},{"loc":752},"blog\u002Fesp32-ota-update-methods-compared","ArduinoOTA and web upload push a .bin over your LAN, HTTPS pull lets the board fetch it, and all three need two OTA app slots. OpenGizmo ships none of them: it flashes over USB.",[758,759,760,761,762],"ESP32","Firmware","IoT","Wi-Fi","OpenGizmo","zQLUmdPODcl13B6XeS-0NTfhHAvd0l9SKrA_LkjmnPs",[765,770,778,783],{"title":766,"description":767,"image":768,"categoryText":727,"categorySlug":726,"tags":769,"path":193},"ESP32 Wi-Fi Provisioning: Captive Portal, BLE, Improv","Compare ESP32 Wi-Fi provisioning: hard-coded credentials, captive portal, Espressif BLE and SoftAP, Improv and ESP-Touch, on security and phone setup.","\u002Fimages\u002Fblog\u002Fesp32-wifi-provisioning-methods-compared.jpg",[758,761,760,759,762],{"title":771,"description":772,"image":773,"categoryText":774,"categorySlug":775,"tags":776,"path":777},"ESP32 Captive Portal Not Working? Fix the Wi-Fi Popup","Why the ESP32 captive portal popup doesn't open on Android, iPhone or Windows: DNS, probe URLs, 302 redirects and the checks that fix it, with working code.","\u002Fimages\u002Fblog\u002Fesp32-captive-portal-not-working-fix.jpg","Troubleshooting","troubleshooting",[758,761,774,759,762],"\u002Fblog\u002Fesp32-captive-portal-not-working-fix",{"title":779,"description":780,"image":781,"categoryText":774,"categorySlug":775,"tags":782,"path":115},"ESP32 .local Not Working on Android: mDNS Explained","Why an ESP32 .local hostname like gizmo-ticker.local fails on Android or a router, how to find the cause, and how to use the IP address with a reservation.","\u002Fimages\u002Fblog\u002Fesp32-mdns-local-hostname-not-working.jpg",[758,761,774,759,762],{"title":784,"description":785,"image":786,"categoryText":787,"categorySlug":788,"tags":789,"path":791},"CoinGecko API on ESP32: Free Limits and Polling Rate","CoinGecko's free Demo plan allows 100 calls a minute and 10,000 a month. The polling math for an ESP32, how to send the key, and what HTTP 429 means.","\u002Fimages\u002Fblog\u002Fcoingecko-api-esp32-rate-limits.jpg","Guides","guides",[758,760,759,762,790],"MAX7219","\u002Fblog\u002Fcoingecko-api-esp32-rate-limits",[793,797,803],{"name":774,"slug":775,"path":794,"count":795,"image":796},"\u002Fblog\u002Fcategories\u002Ftroubleshooting",5,"\u002Fimages\u002Fblog\u002Fesp32-brownout-detector-was-triggered.jpg",{"name":798,"slug":799,"path":800,"count":801,"image":802},"Builds","builds","\u002Fblog\u002Fcategories\u002Fbuilds",6,"\u002Fimages\u002Fblog\u002F3d-printed-esp32-enclosure-design-guide.jpg",{"name":787,"slug":788,"path":804,"count":805,"image":786},"\u002Fblog\u002Fcategories\u002Fguides",11,1795018236807]