Skip to content

Commit e6be067

Browse files
committed
Add StatusMessage message and portnum
1 parent c2e45a3 commit e6be067

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
@@ -1296,6 +1296,13 @@ message Waypoint {
12961296
fixed32 icon = 8;
12971297
}
12981298

1299+
/*
1300+
* Message for node status
1301+
*/
1302+
message StatusMessage {
1303+
string status = 1;
1304+
}
1305+
12991306
/*
13001307
* This message will be proxied over the PhoneAPI for the client to deliver to the MQTT server
13011308
*/

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
@@ -761,6 +761,16 @@ message ModuleConfig {
761761
uint32 blue = 5;
762762
}
763763

764+
/*
765+
* StatusMessage config - Allows setting a status message for a node to periodically rebroadcast
766+
*/
767+
message StatusMessageConfig {
768+
/*
769+
* The actual status string
770+
*/
771+
string node_status = 1;
772+
}
773+
764774
/*
765775
* TODO: REPLACE
766776
*/
@@ -829,6 +839,11 @@ message ModuleConfig {
829839
* TODO: REPLACE
830840
*/
831841
PaxcounterConfig paxcounter = 13;
842+
843+
/*
844+
* TODO: REPLACE
845+
*/
846+
StatusMessageConfig statusmessage = 14;
832847
}
833848
}
834849

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)