From 4d3efb56d88af3380196f242d896599b2defc803 Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Wed, 31 Jul 2024 10:42:35 -0500 Subject: [PATCH] New factory reset (device) admin command and make distinction about existing command that only config / device state is removed --- meshtastic/admin.proto | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/meshtastic/admin.proto b/meshtastic/admin.proto index 9ddf856..12fe0c7 100644 --- a/meshtastic/admin.proto +++ b/meshtastic/admin.proto @@ -316,6 +316,11 @@ message AdminMessage { */ bool commit_edit_settings = 65; + /* + * 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. + */ + int32 factory_reset_device = 94; + /* * Tell the node to reboot into the OTA Firmware in this many seconds (or <0 to cancel reboot) * Only Implemented for ESP32 Devices. This needs to be issued to send a new main firmware via bluetooth. @@ -339,9 +344,9 @@ message AdminMessage { int32 shutdown_seconds = 98; /* - * Tell the node to factory reset, all device settings will be returned to factory defaults. + * Tell the node to factory reset config; all device state and configuration will be returned to factory defaults; BLE bonds will be preserved. */ - int32 factory_reset = 99; + int32 factory_reset_config = 99; /* * Tell the node to reset the nodedb.