Documentation ¶
Overview ¶
Package band provides band specific defaults and configuration.
To select the desired band, use the corresponding build tag.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct { Frequency int // frequency in Hz DataRates []int // each int mapping to an index in DataRateConfiguration }
Channel defines the channel structure
type DataRate ¶
type DataRate struct { Modulation Modulation `json:"modulation"` SpreadFactor int `json:"spreadFactor,omitempty"` // used for LoRa Bandwidth int `json:"bandwidth,omitempty"` // in kHz, used for LoRa BitRate int `json:"bitRate,omitempty"` // bits per second, used for FSK }
DataRate defines a data rate
type MaxPayloadSize ¶
type MaxPayloadSize struct { M int // The maximum MACPayload size length N int // The maximum application payload length in the absence of the optional FOpt control field }
MaxPayloadSize defines the max payload size
type Modulation ¶
type Modulation string
Modulation defines the modulation type.
const ( LoRaModulation Modulation = "LORA" FSKModulation Modulation = "FSK" )
Possible modulation types.
Click to show internal directories.
Click to hide internal directories.