Add reboot command for OTA process
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
This commit is contained in:
1 parent
120ab95ddc
commit
c3c8aab875
1 file changed
+4
@@ -70,8 +70,12 @@ int bwm_wifi_forward_status(uint8_t *state, uint32_t *ip_out);
|
|||||||
#define BWM_CMD_OTA_BEGIN 1800 // req: u32 total size
|
#define BWM_CMD_OTA_BEGIN 1800 // req: u32 total size
|
||||||
#define BWM_CMD_OTA_WRITE 1801 // req: firmware chunk
|
#define BWM_CMD_OTA_WRITE 1801 // req: firmware chunk
|
||||||
#define BWM_CMD_OTA_END 1802 // no payload: finalize + set boot partition
|
#define BWM_CMD_OTA_END 1802 // no payload: finalize + set boot partition
|
||||||
|
// After a working OTA_END, the ESP has marked the new partition bootable but
|
||||||
|
// does not reboot on its own - REBOOT must be sent explicitly (DEV.md 12.8).
|
||||||
|
#define BWM_CMD_REBOOT 1803
|
||||||
int bwm_esp_ota_begin(uint32_t total_size);
|
int bwm_esp_ota_begin(uint32_t total_size);
|
||||||
int bwm_esp_ota_write(const uint8_t *data, uint16_t len);
|
int bwm_esp_ota_write(const uint8_t *data, uint16_t len);
|
||||||
int bwm_esp_ota_end(void);
|
int bwm_esp_ota_end(void);
|
||||||
|
int bwm_esp_reboot(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
Reference in new issue
Block a user