Documentation ¶
Index ¶
Constants ¶
View Source
const (
// MinAppVersion is the minimum app version supported by the emulated radio.
MinAppVersion = 30200
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Dependencies MQTTClient *mqtt.Client // Node configuration // NodeID is the ID of the node. NodeID meshtastic.NodeID // LongName is the long name of the node. LongName string // ShortName is the short name of the node. ShortName string // Channels is the set of channels the radio will listen and transmit on. // The first channel in the set is considered the primary channel and is used for broadcasting NodeInfo and Position Channels *pb.ChannelSet // BroadcastNodeInfoInterval is the interval at which the radio will broadcast a NodeInfo on the Primary channel. // The zero value disables broadcasting NodeInfo. BroadcastNodeInfoInterval time.Duration // BroadcastPositionInterval is the interval at which the radio will broadcast Position on the Primary channel. // The zero value disables broadcasting NodeInfo. BroadcastPositionInterval time.Duration // PositionLatitudeI is the latitude of the position which will be regularly broadcasted. // This is in degrees multiplied by 1e7. PositionLatitudeI int32 // PositionLongitudeI is the longitude of the position which will be regularly broadcasted. // This is in degrees multiplied by 1e7. PositionLongitudeI int32 // PositionAltitude is the altitude of the position which will be regularly broadcasted. // This is in meters above MSL. PositionAltitude int32 // TCPListenAddr is the address the emulated radio will listen on for TCP connections and offer the Client API over. TCPListenAddr string }
Config is the configuration for the emulated Radio.
Click to show internal directories.
Click to hide internal directories.