2021-02-25 12:35:51 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2023-01-17 11:03:10 +00:00
|
|
|
package meshtastic;
|
|
|
|
|
2021-02-25 12:35:51 +00:00
|
|
|
option optimize_for = LITE_RUNTIME;
|
2023-01-21 15:26:47 +00:00
|
|
|
option java_package = "com.geeksville.mesh";
|
|
|
|
option java_outer_classname = "AdminProtos";
|
2022-10-19 07:03:17 +00:00
|
|
|
option go_package = "github.com/meshtastic/go/generated";
|
2022-12-06 16:14:04 +00:00
|
|
|
option csharp_namespace = "Meshtastic.Protobufs";
|
2023-01-21 15:26:47 +00:00
|
|
|
option swift_prefix = "";
|
2021-02-27 05:43:36 +00:00
|
|
|
|
2023-01-17 11:03:10 +00:00
|
|
|
import "meshtastic/channel.proto";
|
|
|
|
import "meshtastic/config.proto";
|
|
|
|
import "meshtastic/device_metadata.proto";
|
|
|
|
import "meshtastic/mesh.proto";
|
|
|
|
import "meshtastic/module_config.proto";
|
2023-02-02 18:12:16 +00:00
|
|
|
import "meshtastic/connection_status.proto";
|
2023-01-17 11:03:10 +00:00
|
|
|
|
2021-03-07 08:28:48 +00:00
|
|
|
/*
|
2022-02-27 08:58:46 +00:00
|
|
|
* This message is handled by the Admin module and is responsible for all settings/channel read/write operations.
|
2021-04-20 09:08:28 +00:00
|
|
|
* This message is used to do settings operations to both remote AND local nodes.
|
2021-03-07 08:28:48 +00:00
|
|
|
* (Prior to 1.2 these operations were done via special ToRadio operations)
|
|
|
|
*/
|
2021-02-25 12:35:51 +00:00
|
|
|
message AdminMessage {
|
|
|
|
|
2022-05-01 02:38:23 +00:00
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-05-01 04:41:22 +00:00
|
|
|
enum ConfigType {
|
2022-05-01 02:38:23 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-05-02 04:03:57 +00:00
|
|
|
DEVICE_CONFIG = 0;
|
2022-05-01 02:38:23 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-05-07 07:48:51 +00:00
|
|
|
POSITION_CONFIG = 1;
|
2022-05-01 02:38:23 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-05-02 04:03:57 +00:00
|
|
|
POWER_CONFIG = 2;
|
2022-05-01 02:38:23 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-09-09 10:42:18 +00:00
|
|
|
NETWORK_CONFIG = 3;
|
2022-05-01 02:38:23 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-05-02 04:03:57 +00:00
|
|
|
DISPLAY_CONFIG = 4;
|
2022-05-01 02:38:23 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-05-02 04:03:57 +00:00
|
|
|
LORA_CONFIG = 5;
|
2022-08-15 23:32:32 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
|
|
|
BLUETOOTH_CONFIG = 6;
|
2022-05-02 11:17:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
|
|
|
enum ModuleConfigType {
|
2022-05-01 02:38:23 +00:00
|
|
|
|
|
|
|
/*
|
2022-05-02 11:17:43 +00:00
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
|
|
|
MQTT_CONFIG = 0;
|
2022-05-01 02:38:23 +00:00
|
|
|
|
|
|
|
/*
|
2022-05-02 11:17:43 +00:00
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
|
|
|
SERIAL_CONFIG = 1;
|
2022-05-01 02:38:23 +00:00
|
|
|
|
|
|
|
/*
|
2022-05-02 11:17:43 +00:00
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
|
|
|
EXTNOTIF_CONFIG = 2;
|
2022-05-01 02:38:23 +00:00
|
|
|
|
|
|
|
/*
|
2022-05-02 11:17:43 +00:00
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
|
|
|
STOREFORWARD_CONFIG = 3;
|
2022-05-01 02:38:23 +00:00
|
|
|
|
|
|
|
/*
|
2022-05-02 11:17:43 +00:00
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
|
|
|
RANGETEST_CONFIG = 4;
|
2022-05-01 02:38:23 +00:00
|
|
|
|
|
|
|
/*
|
2022-05-02 11:17:43 +00:00
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
|
|
|
TELEMETRY_CONFIG = 5;
|
2022-05-01 02:38:23 +00:00
|
|
|
|
|
|
|
/*
|
2022-05-02 11:17:43 +00:00
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
|
|
|
CANNEDMSG_CONFIG = 6;
|
2022-11-02 12:46:35 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
|
|
|
AUDIO_CONFIG = 7;
|
2022-12-28 22:27:51 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-12-28 22:34:40 +00:00
|
|
|
REMOTEHARDWARE_CONFIG = 8;
|
2022-05-02 11:19:48 +00:00
|
|
|
}
|
2022-05-01 02:38:23 +00:00
|
|
|
|
2022-02-21 07:48:42 +00:00
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-09-07 01:34:18 +00:00
|
|
|
oneof payload_variant {
|
2021-11-30 19:45:01 +00:00
|
|
|
|
|
|
|
/*
|
2022-09-07 02:13:54 +00:00
|
|
|
* Send the specified channel in the response to this message
|
|
|
|
* NOTE: This field is sent with the channel index + 1 (to ensure we never try to send 'zero' - which protobufs treats as not present)
|
2021-11-30 19:45:01 +00:00
|
|
|
*/
|
2022-09-07 02:13:54 +00:00
|
|
|
uint32 get_channel_request = 1;
|
2021-11-30 19:45:01 +00:00
|
|
|
|
|
|
|
/*
|
2022-09-07 02:13:54 +00:00
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
|
|
|
Channel get_channel_response = 2;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Send the current owner data in the response to this message.
|
|
|
|
*/
|
|
|
|
bool get_owner_request = 3;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
|
|
|
User get_owner_response = 4;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Ask for the following config data to be sent
|
|
|
|
*/
|
|
|
|
ConfigType get_config_request = 5;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Send the current Config in the response to this message.
|
|
|
|
*/
|
|
|
|
Config get_config_response = 6;
|
2021-11-30 19:45:01 +00:00
|
|
|
|
|
|
|
/*
|
2022-09-07 02:13:54 +00:00
|
|
|
* Ask for the following config data to be sent
|
2021-11-30 19:45:01 +00:00
|
|
|
*/
|
2022-09-07 02:13:54 +00:00
|
|
|
ModuleConfigType get_module_config_request = 7;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
2022-09-07 02:13:54 +00:00
|
|
|
* Send the current Config in the response to this message.
|
2022-02-21 07:48:42 +00:00
|
|
|
*/
|
2022-09-07 02:13:54 +00:00
|
|
|
ModuleConfig get_module_config_response = 8;
|
2021-03-11 03:11:45 +00:00
|
|
|
|
2022-02-21 07:48:42 +00:00
|
|
|
/*
|
2022-09-07 02:13:54 +00:00
|
|
|
* Get the Canned Message Module messages in the response to this message.
|
2022-02-21 07:48:42 +00:00
|
|
|
*/
|
2022-09-07 02:13:54 +00:00
|
|
|
bool get_canned_message_module_messages_request = 10;
|
2021-12-09 08:21:30 +00:00
|
|
|
|
2022-05-01 02:38:23 +00:00
|
|
|
/*
|
2022-09-07 02:13:54 +00:00
|
|
|
* Get the Canned Message Module messages in the response to this message.
|
2022-05-01 02:38:23 +00:00
|
|
|
*/
|
2022-09-07 02:13:54 +00:00
|
|
|
string get_canned_message_module_messages_response = 11;
|
2022-05-01 04:41:22 +00:00
|
|
|
|
|
|
|
/*
|
2022-09-07 02:13:54 +00:00
|
|
|
* Request the node to send device metadata (firmware, protobuf version, etc)
|
2022-05-01 04:41:22 +00:00
|
|
|
*/
|
2022-10-09 06:26:01 +00:00
|
|
|
bool get_device_metadata_request = 12;
|
2022-05-01 02:38:23 +00:00
|
|
|
|
2022-05-01 22:29:10 +00:00
|
|
|
/*
|
2022-09-07 02:13:54 +00:00
|
|
|
* Device metadata response
|
|
|
|
*/
|
|
|
|
DeviceMetadata get_device_metadata_response = 13;
|
2022-05-01 22:29:10 +00:00
|
|
|
|
2022-12-28 22:49:34 +00:00
|
|
|
/*
|
|
|
|
* Get the Ringtone in the response to this message.
|
|
|
|
*/
|
|
|
|
bool get_ringtone_request = 14;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Get the Ringtone in the response to this message.
|
|
|
|
*/
|
|
|
|
string get_ringtone_response = 15;
|
|
|
|
|
2023-02-02 18:12:16 +00:00
|
|
|
/*
|
|
|
|
* Request the node to send it's connection status
|
|
|
|
*/
|
|
|
|
bool get_device_connection_status_request = 16;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Device connection status response
|
|
|
|
*/
|
|
|
|
DeviceConnectionStatus get_device_connection_status_response = 17;
|
|
|
|
|
2022-05-01 22:38:22 +00:00
|
|
|
/*
|
2022-09-07 02:13:54 +00:00
|
|
|
* Set the owner for this node
|
2022-05-01 22:38:22 +00:00
|
|
|
*/
|
2022-09-07 02:13:54 +00:00
|
|
|
User set_owner = 32;
|
|
|
|
|
2022-05-02 11:17:43 +00:00
|
|
|
/*
|
2022-09-07 02:13:54 +00:00
|
|
|
* Set channels (using the new API).
|
|
|
|
* A special channel is the "primary channel".
|
|
|
|
* The other records are secondary channels.
|
|
|
|
* Note: only one channel can be marked as primary.
|
|
|
|
* If the client sets a particular channel to be primary, the previous channel will be set to SECONDARY automatically.
|
|
|
|
*/
|
|
|
|
Channel set_channel = 33;
|
2022-05-02 11:17:43 +00:00
|
|
|
|
|
|
|
/*
|
2022-09-07 02:13:54 +00:00
|
|
|
* Set the current Config
|
2022-05-02 11:17:43 +00:00
|
|
|
*/
|
2022-09-07 02:13:54 +00:00
|
|
|
Config set_config = 34;
|
|
|
|
|
2022-05-02 11:17:43 +00:00
|
|
|
/*
|
|
|
|
* Set the current Config
|
|
|
|
*/
|
2022-09-07 02:13:54 +00:00
|
|
|
ModuleConfig set_module_config = 35;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Set the Canned Message Module messages text.
|
|
|
|
*/
|
|
|
|
string set_canned_message_module_messages = 36;
|
2022-11-20 21:48:40 +00:00
|
|
|
|
2022-12-28 22:49:34 +00:00
|
|
|
/*
|
|
|
|
* Set the ringtone for ExternalNotification.
|
|
|
|
*/
|
|
|
|
string set_ringtone_message = 37;
|
|
|
|
|
2022-05-02 11:17:43 +00:00
|
|
|
/*
|
2022-11-20 21:48:40 +00:00
|
|
|
* Begins an edit transaction for config, module config, owner, and channel settings changes
|
|
|
|
* This will delay the standard *implicit* save to the file system and subsequent reboot behavior until committed (commit_edit_settings)
|
2022-05-02 11:17:43 +00:00
|
|
|
*/
|
2022-11-20 22:13:38 +00:00
|
|
|
bool begin_edit_settings = 64;
|
2022-11-20 21:48:40 +00:00
|
|
|
|
2022-08-07 23:34:17 +00:00
|
|
|
/*
|
2022-11-20 21:48:40 +00:00
|
|
|
* Commits an open transaction for any edits made to config, module config, owner, and channel settings
|
2022-08-07 23:34:17 +00:00
|
|
|
*/
|
2022-11-20 22:13:38 +00:00
|
|
|
bool commit_edit_settings = 65;
|
2022-08-07 23:34:17 +00:00
|
|
|
|
2022-10-07 20:10:51 +00:00
|
|
|
/*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
int32 reboot_ota_seconds = 95;
|
|
|
|
|
2021-11-30 19:45:01 +00:00
|
|
|
/*
|
|
|
|
* This message is only supported for the simulator porduino build.
|
|
|
|
* If received the simulator will exit successfully.
|
|
|
|
*/
|
2022-09-07 02:13:54 +00:00
|
|
|
bool exit_simulator = 96;
|
2021-03-27 02:04:22 +00:00
|
|
|
|
2021-11-30 19:45:01 +00:00
|
|
|
/*
|
|
|
|
* Tell the node to reboot in this many seconds (or <0 to cancel reboot)
|
|
|
|
*/
|
2022-09-07 02:13:54 +00:00
|
|
|
int32 reboot_seconds = 97;
|
2022-01-19 01:39:38 +00:00
|
|
|
|
2022-01-21 00:43:16 +00:00
|
|
|
/*
|
|
|
|
* Tell the node to shutdown in this many seconds (or <0 to cancel shutdown)
|
|
|
|
*/
|
2022-09-07 02:13:54 +00:00
|
|
|
int32 shutdown_seconds = 98;
|
2022-08-08 00:43:46 +00:00
|
|
|
|
|
|
|
/*
|
2022-09-07 02:13:54 +00:00
|
|
|
* Tell the node to factory reset, all device settings will be returned to factory defaults.
|
2022-08-08 00:43:46 +00:00
|
|
|
*/
|
2022-09-07 02:13:54 +00:00
|
|
|
int32 factory_reset = 99;
|
2022-09-11 14:08:19 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Tell the node to reset the nodedb.
|
|
|
|
*/
|
|
|
|
int32 nodedb_reset = 100;
|
2021-11-30 19:45:01 +00:00
|
|
|
}
|
2022-02-21 07:48:42 +00:00
|
|
|
}
|