Update protos

This commit is contained in:
Ben Meadors
2026-07-07 06:34:22 -05:00
parent 489cc7dd88
commit f250cf3cdc
4 changed files with 24 additions and 4 deletions

View File

@@ -38,6 +38,12 @@ typedef struct _meshtastic_DeviceProfile {
/* Predefined messages for CannedMessage */
bool has_canned_messages;
char canned_messages[201];
/* Is the node unmessagable */
bool has_is_unmessagable;
bool is_unmessagable;
/* Is this node in licensed user mode */
bool has_is_licensed;
bool is_licensed;
} meshtastic_DeviceProfile;
@@ -46,8 +52,8 @@ extern "C" {
#endif
/* Initializer values for message structs */
#define meshtastic_DeviceProfile_init_default {false, "", false, "", {{NULL}, NULL}, false, meshtastic_LocalConfig_init_default, false, meshtastic_LocalModuleConfig_init_default, false, meshtastic_Position_init_default, false, "", false, ""}
#define meshtastic_DeviceProfile_init_zero {false, "", false, "", {{NULL}, NULL}, false, meshtastic_LocalConfig_init_zero, false, meshtastic_LocalModuleConfig_init_zero, false, meshtastic_Position_init_zero, false, "", false, ""}
#define meshtastic_DeviceProfile_init_default {false, "", false, "", {{NULL}, NULL}, false, meshtastic_LocalConfig_init_default, false, meshtastic_LocalModuleConfig_init_default, false, meshtastic_Position_init_default, false, "", false, "", false, 0, false, 0}
#define meshtastic_DeviceProfile_init_zero {false, "", false, "", {{NULL}, NULL}, false, meshtastic_LocalConfig_init_zero, false, meshtastic_LocalModuleConfig_init_zero, false, meshtastic_Position_init_zero, false, "", false, "", false, 0, false, 0}
/* Field tags (for use in manual encoding/decoding) */
#define meshtastic_DeviceProfile_long_name_tag 1
@@ -58,6 +64,8 @@ extern "C" {
#define meshtastic_DeviceProfile_fixed_position_tag 6
#define meshtastic_DeviceProfile_ringtone_tag 7
#define meshtastic_DeviceProfile_canned_messages_tag 8
#define meshtastic_DeviceProfile_is_unmessagable_tag 9
#define meshtastic_DeviceProfile_is_licensed_tag 10
/* Struct field encoding specification for nanopb */
#define meshtastic_DeviceProfile_FIELDLIST(X, a) \
@@ -68,7 +76,9 @@ X(a, STATIC, OPTIONAL, MESSAGE, config, 4) \
X(a, STATIC, OPTIONAL, MESSAGE, module_config, 5) \
X(a, STATIC, OPTIONAL, MESSAGE, fixed_position, 6) \
X(a, STATIC, OPTIONAL, STRING, ringtone, 7) \
X(a, STATIC, OPTIONAL, STRING, canned_messages, 8)
X(a, STATIC, OPTIONAL, STRING, canned_messages, 8) \
X(a, STATIC, OPTIONAL, BOOL, is_unmessagable, 9) \
X(a, STATIC, OPTIONAL, BOOL, is_licensed, 10)
#define meshtastic_DeviceProfile_CALLBACK pb_default_field_callback
#define meshtastic_DeviceProfile_DEFAULT NULL
#define meshtastic_DeviceProfile_config_MSGTYPE meshtastic_LocalConfig

View File

@@ -333,6 +333,12 @@ typedef enum _meshtastic_HardwareModel {
meshtastic_HardwareModel_HELTEC_MESH_TOWER_V2 = 139,
/* Meshnology W10 */
meshtastic_HardwareModel_MESHNOLOGY_W10 = 140,
/* Heltec ESP32S3 + SX1262 */
meshtastic_HardwareModel_HELTEC_RC32 = 141,
/* Heltec NRF52840 + SX1262 */
meshtastic_HardwareModel_HELTEC_RC52 = 142,
/* Heltec ESP32C6 + SX1262 */
meshtastic_HardwareModel_HELTEC_RCC6 = 143,
/* ------------------------------------------------------------------------------------------------------------------------------------------
Reserved ID For developing private Ports. These will show up in live traffic sparsely, so we can use a high number. Keep it within 8 bits.
------------------------------------------------------------------------------------------------------------------------------------------ */

View File

@@ -161,6 +161,10 @@ typedef enum _meshtastic_PortNum {
Portnum for payloads from the official Meshtastic ATAK plugin using
TAKPacketV2 with zstd dictionary compression. */
meshtastic_PortNum_ATAK_PLUGIN_V2 = 78,
/* signed firmware updates over lora.
ENCODING: binary (ota-common transport frames) */
meshtastic_PortNum_LORA_OTA_APP = 79,
/* GroupAlarm integration
Used for transporting GroupAlarm-related messages between Meshtastic nodes
and companion applications/services. */