Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mongoose-os-libs/ota-http-server
https://github.com/mongoose-os-libs/ota-http-server
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mongoose-os-libs/ota-http-server
- Owner: mongoose-os-libs
- License: other
- Created: 2017-06-14T14:09:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-12-15T00:18:08.000Z (almost 3 years ago)
- Last Synced: 2024-07-31T21:52:00.188Z (4 months ago)
- Size: 540 KB
- Stars: 5
- Watchers: 6
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-mongoose-os - ota-http-server
README
# Implementation of Mongoose OS OTA HTTP server
## Overview
This library adds several HTTP endpoints that allow to `POST` new firmware
to the device over HTTP:- `/update` - accept new firmware uploads via HTTP `POST`.
- `/update/revert` - roll back to the previous firmware.
- `/update/commit` - commit new firmware.Example using `curl` tool (use Mac/Linux terminal or Windows command prompt).
Assume you have build a new firmware for your app. The zip file with a
built firmware is located at `build/fw.zip`. In order to update a live
device with IP address `IP_ADDRESS`, do:```
$ curl -i -F filedata=@./build/fw.zip http://IP_ADDRESS/update
HTTP/1.1 200 OK
Server: Mongoose/6.10
Content-Type: text/plain
Connection: closeUpdate applied, finalizing
```