Meshtastic-Apple/Meshtastic/Extensions/Constants.swift
Garth Vander Houwen 5eea9ea87c Node num details
2024-07-17 00:20:35 -07:00

11 lines
477 B
Swift

import Foundation
enum Constants {
/// `UInt32.max` or FFFF,FFFF in hex is used to identify messages that are being
/// sent to a channel and are not a DM to an individual user. This is used
/// in the `to` field of some mesh packets.
static let maximumNodeNum = UInt32.max
/// Based on the NUM_RESERVED from the firmware.
/// https://github.com/meshtastic/firmware/blob/46d7b82ac1a4292ba52ca690e1a433d3a501a9e5/src/mesh/NodeDB.cpp#L522
static let minimumNodeNum = 4
}