Skip to content

Commit 19c4833

Browse files
authored
Add StatusMessage message and portnum (#835)
1 parent c8d5047 commit 19c4833

File tree

5 files changed

+34
-1
lines changed

5 files changed

+34
-1
lines changed

meshtastic/mesh.options

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
*StoreForwardPlusPlus.root_hash max_size:32
7575
*StoreForwardPlusPlus.message max_size:240
7676

77+
*StatusMessage.status max_size:80
7778

7879
# MyMessage.name max_size:40
7980
# or fixed_length or fixed_count, or max_count
@@ -94,4 +95,4 @@
9495

9596
*ChunkedPayload.chunk_count int_size:16
9697
*ChunkedPayload.chunk_index int_size:16
97-
*ChunkedPayload.payload_chunk max_size:228
98+
*ChunkedPayload.payload_chunk max_size:228

meshtastic/mesh.proto

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,6 +1311,13 @@ message Waypoint {
13111311
fixed32 icon = 8;
13121312
}
13131313

1314+
/*
1315+
* Message for node status
1316+
*/
1317+
message StatusMessage {
1318+
string status = 1;
1319+
}
1320+
13141321
/*
13151322
* This message will be proxied over the PhoneAPI for the client to deliver to the MQTT server
13161323
*/

meshtastic/module_config.options

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@
2727
*DetectionSensorConfig.monitor_pin int_size:8
2828
*DetectionSensorConfig.name max_size:20
2929
*DetectionSensorConfig.detection_trigger_type max_size:8
30+
31+
*StatusMessage.node_status max_size:80

meshtastic/module_config.proto

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,16 @@ message ModuleConfig {
769769
uint32 blue = 5;
770770
}
771771

772+
/*
773+
* StatusMessage config - Allows setting a status message for a node to periodically rebroadcast
774+
*/
775+
message StatusMessageConfig {
776+
/*
777+
* The actual status string
778+
*/
779+
string node_status = 1;
780+
}
781+
772782
/*
773783
* TODO: REPLACE
774784
*/
@@ -837,6 +847,11 @@ message ModuleConfig {
837847
* TODO: REPLACE
838848
*/
839849
PaxcounterConfig paxcounter = 13;
850+
851+
/*
852+
* TODO: REPLACE
853+
*/
854+
StatusMessageConfig statusmessage = 14;
840855
}
841856
}
842857

meshtastic/portnums.proto

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,14 @@ enum PortNum {
142142
*/
143143
STORE_FORWARD_PLUSPLUS_APP = 35;
144144

145+
/*
146+
* Node Status module
147+
* ENCODING: protobuf
148+
* This module allows setting an extra string of status for a node.
149+
* Broadcasts on change and on a timer, possibly once a day.
150+
*/
151+
NODE_STATUS_APP = 36;
152+
145153
/*
146154
* Provides a hardware serial interface to send and receive from the Meshtastic network.
147155
* Connect to the RX/TX pins of a device with 38400 8N1. Packets received from the Meshtastic

0 commit comments

Comments
 (0)