Add StatusMessage message and portnum (#835)

This commit is contained in:
Jonathan Bennett 2026-01-17 15:50:12 -06:00 committed by GitHub
parent c8d5047b63
commit 19c4833930
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 34 additions and 1 deletions

View file

@ -74,6 +74,7 @@
*StoreForwardPlusPlus.root_hash max_size:32
*StoreForwardPlusPlus.message max_size:240
*StatusMessage.status max_size:80
# MyMessage.name max_size:40
# or fixed_length or fixed_count, or max_count
@ -94,4 +95,4 @@
*ChunkedPayload.chunk_count int_size:16
*ChunkedPayload.chunk_index int_size:16
*ChunkedPayload.payload_chunk max_size:228
*ChunkedPayload.payload_chunk max_size:228

View file

@ -1311,6 +1311,13 @@ message Waypoint {
fixed32 icon = 8;
}
/*
* Message for node status
*/
message StatusMessage {
string status = 1;
}
/*
* This message will be proxied over the PhoneAPI for the client to deliver to the MQTT server
*/

View file

@ -27,3 +27,5 @@
*DetectionSensorConfig.monitor_pin int_size:8
*DetectionSensorConfig.name max_size:20
*DetectionSensorConfig.detection_trigger_type max_size:8
*StatusMessage.node_status max_size:80

View file

@ -769,6 +769,16 @@ message ModuleConfig {
uint32 blue = 5;
}
/*
* StatusMessage config - Allows setting a status message for a node to periodically rebroadcast
*/
message StatusMessageConfig {
/*
* The actual status string
*/
string node_status = 1;
}
/*
* TODO: REPLACE
*/
@ -837,6 +847,11 @@ message ModuleConfig {
* TODO: REPLACE
*/
PaxcounterConfig paxcounter = 13;
/*
* TODO: REPLACE
*/
StatusMessageConfig statusmessage = 14;
}
}

View file

@ -142,6 +142,14 @@ enum PortNum {
*/
STORE_FORWARD_PLUSPLUS_APP = 35;
/*
* Node Status module
* ENCODING: protobuf
* This module allows setting an extra string of status for a node.
* Broadcasts on change and on a timer, possibly once a day.
*/
NODE_STATUS_APP = 36;
/*
* Provides a hardware serial interface to send and receive from the Meshtastic network.
* Connect to the RX/TX pins of a device with 38400 8N1. Packets received from the Meshtastic