From f9c4f875818c9aa6995e6e25803d52557a1779c7 Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Sat, 27 Mar 2021 10:04:22 +0800 Subject: [PATCH] add admin.reboot_seconds message --- admin.proto | 4 ++++ docs/docs.md | 1 + 2 files changed, 5 insertions(+) diff --git a/admin.proto b/admin.proto index c831b3a..485eba9 100644 --- a/admin.proto +++ b/admin.proto @@ -60,5 +60,9 @@ message AdminMessage { * simulator will exit successfully/ */ bool exit_simulator = 34; + + /** Tell the node to reboot in this many seconds (or <0 to cancel reboot) + */ + int32 reboot_seconds = 35; } } \ No newline at end of file diff --git a/docs/docs.md b/docs/docs.md index 53f27fa..1ded0ea 100644 --- a/docs/docs.md +++ b/docs/docs.md @@ -95,6 +95,7 @@ is used to do settings operations to both remote AND local nodes. | confirm_set_channel | [bool](#bool) | | Setting channels/radio config remotely carries the risk that you might send an invalid config and the radio never talks to your mesh again. Therefore if setting either of these properties remotely, you must send a confirm_xxx message within 10 minutes. If you fail to do so, the radio will assume loss of comms and revert your changes. These messages are optional when changing the local node. | | confirm_set_radio | [bool](#bool) | | | | exit_simulator | [bool](#bool) | | This message is only supported for the simulator porduino build. If received the simulator will exit successfully/ | +| reboot_seconds | [int32](#int32) | | Tell the node to reboot in this many seconds (or <0 to cancel reboot) |