forked from ruvnet/RuView
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwasm_upload.h
More file actions
27 lines (23 loc) · 803 Bytes
/
wasm_upload.h
File metadata and controls
27 lines (23 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/**
* @file wasm_upload.h
* @brief ADR-040 — HTTP endpoints for WASM module upload and management.
*
* Registers endpoints on the existing OTA HTTP server (port 8032):
* POST /wasm/upload — Upload a .wasm binary (max 128 KB)
* GET /wasm/list — List loaded modules with status
* POST /wasm/start/:id — Start a loaded module
* POST /wasm/stop/:id — Stop a running module
* DELETE /wasm/:id — Unload a module
*/
#ifndef WASM_UPLOAD_H
#define WASM_UPLOAD_H
#include "esp_err.h"
#include "esp_http_server.h"
/**
* Register WASM management HTTP endpoints on the given server.
*
* @param server HTTP server handle (from OTA init).
* @return ESP_OK on success.
*/
esp_err_t wasm_upload_register(httpd_handle_t server);
#endif /* WASM_UPLOAD_H */