aboutsummaryrefslogtreecommitdiff
path: root/util.go
diff options
context:
space:
mode:
Diffstat (limited to 'util.go')
-rw-r--r--util.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/util.go b/util.go
index 0de4297..ef2c61f 100644
--- a/util.go
+++ b/util.go
@@ -4,6 +4,7 @@ import (
pbuf "buf.build/gen/go/meshtastic/protobufs/protocolbuffers/go/meshtastic"
"encoding/binary"
"fmt"
+ "math"
)
type NodeID uint32
@@ -23,6 +24,9 @@ func (n NodeID) Bytes() []byte {
return bytes
}
+// BroadcastNodeID is the special NodeID used when broadcasting a packet to a channel.
+const BroadcastNodeID NodeID = math.MaxUint32
+
type Node struct {
LongName string
ShortName string