Merge pull request #539 from meshtastic/factory-reset-distinction

New factory reset (device) admin command and make distinction about existing command that only config / device state is removed
This commit is contained in:
Ben Meadors 2024-08-08 10:53:39 -05:00 committed by GitHub
commit 2fa7d6a4b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.