Add reboot_ota_mode to AdminMessage for OTA firmware updates

This commit is contained in:
Ben Meadors 2025-12-19 19:29:37 -06:00
parent 62ef17b3d1
commit f6b116ef65

View file

@ -435,6 +435,11 @@ 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.
*/
@ -475,6 +480,26 @@ message AdminMessage {
}
}
/*
* Firmware update mode for OTA updates
*/
enum OTAMode {
/*
* Do not reboot into OTA mode
*/
NO_REBOOT_OTA = 0;
/*
* Reboot into OTA mode for BLE firmware update
*/
OTA_BLE = 1;
/*
* Reboot into OTA mode for WiFi firmware update
*/
OTA_WIFI = 2;
}
/*
* Parameters for setting up Meshtastic for ameteur radio usage
*/