diff options
Diffstat (limited to 'util.go')
| -rw-r--r-- | util.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |
