Skip to content

Commit 76f806e

Browse files
authored
Merge pull request #643 from meshtastic/udp-broadcast
Add protocol flags to enable UDP broadcasts and other future local networking transports
2 parents b1ebb96 + b77d1a3 commit 76f806e

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

meshtastic/config.proto

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,26 @@ message Config {
515515
* rsyslog Server and Port
516516
*/
517517
string rsyslog_server = 9;
518+
519+
/*
520+
* Flags for enabling/disabling network protocols
521+
*/
522+
uint32 enabled_protocols = 10;
523+
524+
/*
525+
* Available flags auxiliary network protocols
526+
*/
527+
enum ProtocolFlags {
528+
/*
529+
* Do not broadcast packets over any network protocol
530+
*/
531+
NO_BROADCAST = 0x0000;
532+
533+
/*
534+
* Enable broadcasting packets via UDP over the local network
535+
*/
536+
UDP_BROADCAST = 0x0001;
537+
}
518538
}
519539

520540
/*
@@ -1113,4 +1133,4 @@ message Config {
11131133
SessionkeyConfig sessionkey = 9;
11141134
DeviceUIConfig device_ui = 10;
11151135
}
1116-
}
1136+
}

0 commit comments

Comments
 (0)