11/* Automatically generated nanopb header */
2- /* Generated by nanopb-0.4.7 */
2+ /* Generated by nanopb-0.4.9 */
33
44#ifndef PB_MESHTASTIC_MESHTASTIC_ADMIN_PB_H_INCLUDED
55#define PB_MESHTASTIC_MESHTASTIC_ADMIN_PB_H_INCLUDED
99#include "meshtastic/connection_status.pb.h"
1010#include "meshtastic/mesh.pb.h"
1111#include "meshtastic/module_config.pb.h"
12+ #include "meshtastic/device_ui.pb.h"
1213
1314#if PB_PROTO_HEADER_VERSION != 40
1415#error Regenerate this file with the current version of nanopb generator.
@@ -34,7 +35,9 @@ typedef enum _meshtastic_AdminMessage_ConfigType {
3435 /* TODO: REPLACE */
3536 meshtastic_AdminMessage_ConfigType_SECURITY_CONFIG = 7 ,
3637 /* */
37- meshtastic_AdminMessage_ConfigType_SESSIONKEY_CONFIG = 8
38+ meshtastic_AdminMessage_ConfigType_SESSIONKEY_CONFIG = 8 ,
39+ /* device-ui config */
40+ meshtastic_AdminMessage_ConfigType_DEVICEUI_CONFIG = 9
3841} meshtastic_AdminMessage_ConfigType ;
3942
4043/* TODO: REPLACE */
@@ -171,6 +174,12 @@ typedef struct _meshtastic_AdminMessage {
171174 /* Set time only on the node
172175 Convenience method to set the time on the node (as Net quality) without any other position data */
173176 uint32_t set_time_only ;
177+ /* Tell the node to send the stored ui data. */
178+ bool get_ui_config_request ;
179+ /* Reply stored device ui data. */
180+ meshtastic_DeviceUIConfig get_ui_config_response ;
181+ /* Tell the node to store UI data persistently. */
182+ meshtastic_DeviceUIConfig store_ui_config ;
174183 /* Begins an edit transaction for config, module config, owner, and channel settings changes
175184 This will delay the standard *implicit* save to the file system and subsequent reboot behavior until committed (commit_edit_settings) */
176185 bool begin_edit_settings ;
@@ -206,8 +215,8 @@ extern "C" {
206215
207216/* Helper constants for enums */
208217#define _meshtastic_AdminMessage_ConfigType_MIN meshtastic_AdminMessage_ConfigType_DEVICE_CONFIG
209- #define _meshtastic_AdminMessage_ConfigType_MAX meshtastic_AdminMessage_ConfigType_SESSIONKEY_CONFIG
210- #define _meshtastic_AdminMessage_ConfigType_ARRAYSIZE ((meshtastic_AdminMessage_ConfigType)(meshtastic_AdminMessage_ConfigType_SESSIONKEY_CONFIG +1))
218+ #define _meshtastic_AdminMessage_ConfigType_MAX meshtastic_AdminMessage_ConfigType_DEVICEUI_CONFIG
219+ #define _meshtastic_AdminMessage_ConfigType_ARRAYSIZE ((meshtastic_AdminMessage_ConfigType)(meshtastic_AdminMessage_ConfigType_DEVICEUI_CONFIG +1))
211220
212221#define _meshtastic_AdminMessage_ModuleConfigType_MIN meshtastic_AdminMessage_ModuleConfigType_MQTT_CONFIG
213222#define _meshtastic_AdminMessage_ModuleConfigType_MAX meshtastic_AdminMessage_ModuleConfigType_PAXCOUNTER_CONFIG
@@ -267,6 +276,9 @@ extern "C" {
267276#define meshtastic_AdminMessage_set_fixed_position_tag 41
268277#define meshtastic_AdminMessage_remove_fixed_position_tag 42
269278#define meshtastic_AdminMessage_set_time_only_tag 43
279+ #define meshtastic_AdminMessage_get_ui_config_request_tag 44
280+ #define meshtastic_AdminMessage_get_ui_config_response_tag 45
281+ #define meshtastic_AdminMessage_store_ui_config_tag 46
270282#define meshtastic_AdminMessage_begin_edit_settings_tag 64
271283#define meshtastic_AdminMessage_commit_edit_settings_tag 65
272284#define meshtastic_AdminMessage_factory_reset_device_tag 94
@@ -314,6 +326,9 @@ X(a, STATIC, ONEOF, UINT32, (payload_variant,remove_favorite_node,remove_
314326X(a, STATIC, ONEOF, MESSAGE, (payload_variant,set_fixed_position,set_fixed_position), 41) \
315327X(a, STATIC, ONEOF, BOOL, (payload_variant,remove_fixed_position,remove_fixed_position), 42) \
316328X(a, STATIC, ONEOF, FIXED32, (payload_variant,set_time_only,set_time_only), 43) \
329+ X(a, STATIC, ONEOF, BOOL, (payload_variant,get_ui_config_request,get_ui_config_request), 44) \
330+ X(a, STATIC, ONEOF, MESSAGE, (payload_variant,get_ui_config_response,get_ui_config_response), 45) \
331+ X(a, STATIC, ONEOF, MESSAGE, (payload_variant,store_ui_config,store_ui_config), 46) \
317332X(a, STATIC, ONEOF, BOOL, (payload_variant,begin_edit_settings,begin_edit_settings), 64) \
318333X(a, STATIC, ONEOF, BOOL, (payload_variant,commit_edit_settings,commit_edit_settings), 65) \
319334X(a, STATIC, ONEOF, INT32, (payload_variant,factory_reset_device,factory_reset_device), 94) \
@@ -339,6 +354,8 @@ X(a, STATIC, SINGULAR, BYTES, session_passkey, 101)
339354#define meshtastic_AdminMessage_payload_variant_set_config_MSGTYPE meshtastic_Config
340355#define meshtastic_AdminMessage_payload_variant_set_module_config_MSGTYPE meshtastic_ModuleConfig
341356#define meshtastic_AdminMessage_payload_variant_set_fixed_position_MSGTYPE meshtastic_Position
357+ #define meshtastic_AdminMessage_payload_variant_get_ui_config_response_MSGTYPE meshtastic_DeviceUIConfig
358+ #define meshtastic_AdminMessage_payload_variant_store_ui_config_MSGTYPE meshtastic_DeviceUIConfig
342359
343360#define meshtastic_HamParameters_FIELDLIST (X , a ) \
344361X(a, STATIC, SINGULAR, STRING, call_sign, 1) \
@@ -364,6 +381,7 @@ extern const pb_msgdesc_t meshtastic_NodeRemoteHardwarePinsResponse_msg;
364381#define meshtastic_NodeRemoteHardwarePinsResponse_fields &meshtastic_NodeRemoteHardwarePinsResponse_msg
365382
366383/* Maximum encoded size of messages (where known) */
384+ #define MESHTASTIC_MESHTASTIC_ADMIN_PB_H_MAX_SIZE meshtastic_AdminMessage_size
367385#define meshtastic_AdminMessage_size 511
368386#define meshtastic_HamParameters_size 31
369387#define meshtastic_NodeRemoteHardwarePinsResponse_size 496
0 commit comments