AdminMessage fixes for OTA

This commit is contained in:
Jake-B 2025-12-27 08:16:28 -05:00
parent c39b564ca6
commit 4b9f104a18
2 changed files with 22 additions and 9 deletions

View file

@ -1,7 +1,8 @@
*AdminMessage.payload_variant anonymous_oneof:true
*AdminMessage.session_passkey max_size:8
*AdminMessage.ota_hash max_size:32
*AdminMessage.OTAEvent.ota_hash max_size:32
*AdminMessage.InputEvent.event_code int_size:8
*AdminMessage.InputEvent.kb_char int_size:8

View file

@ -188,6 +188,23 @@ message AdminMessage {
uint32 touch_y = 4;
}
/*
* User is requesting an over the air update.
* Node will reboot into the OTA loader
*/
message OTAEvent {
/*
* Tell the node to reboot into OTA mode for firmware update via BLE or WiFi (ESP32 only for now)
*/
OTAMode reboot_ota_mode = 1;
/*
* A 32 byte hash of the OTA firmware.
* Used to verify the integrity of the firmware before applying an update.
*/
bytes ota_hash = 2;
}
/*
* TODO: REPLACE
*/
@ -436,11 +453,6 @@ message AdminMessage {
*/
KeyVerificationAdmin key_verification = 67;
/*
* Tell the node to reboot into OTA mode for firmware update via BLE or WiFi (ESP32 only for now)
*/
OTAMode reboot_ota_mode = 68;
/*
* Tell the node to factory reset config everything; all device state and configuration will be returned to factory defaults and BLE bonds will be cleared.
*/
@ -481,11 +493,11 @@ message AdminMessage {
bool nodedb_reset = 100;
/*
* A 32 byte hash of the OTA firmware.
* Used to verify the integrity of the firmware before applying an update.
* Tell the node to reset into the OTA Loader
*/
bytes ota_hash = 102;
OTAEvent ota_request = 102;
}
}
/*