|
ProtoCore v0.0.2
Deterministic, zero-heap network stack for embedded targets
|
Authenticated streaming OTA firmware update (PC_ENABLE_OTA). More...
Go to the source code of this file.
Functions | |
| void | pc_ota_begin (PC &server, const char *path, const char *user, const char *pass) |
| Register an authenticated streaming OTA endpoint. | |
Authenticated streaming OTA firmware update (PC_ENABLE_OTA).
Definition in file ota_service.cpp.
| void pc_ota_begin | ( | PC & | server, |
| const char * | path, | ||
| const char * | user, | ||
| const char * | pass | ||
| ) |
Register an authenticated streaming OTA endpoint.
Call after begin(). A POST @p path carrying a raw firmware image and valid HTTP Basic credentials is streamed into Update; on success the device replies 200 and reboots. Unauthorized or failed uploads get 401 / 400.
| server | The running server (the route + stream hooks are installed on it). |
| path | URL to accept the upload on (e.g. "/update"). Persistent string. |
| user | Required HTTP Basic username. |
| pass | Required HTTP Basic password. |
Definition at line 152 of file ota_service.cpp.