Documentation ¶
Index ¶
Constants ¶
View Source
const ( // FPort distinguishes the data format. FPort uint8 = 5 // FCnt counts number of frames. FCnt = 10 // Battery level of device. Battery = 115 // Margin is a link margin of device. Margin = 7 // Channel for communication (Gateway). Channel = 1 // CRCStatus of packet (Gateway). CRCStatus = 1 // Bandwidth of communication (Gateway). Bandwidth = 125 // SpreadFactor of communication (Gateway). SpreadFactor = 7 // Frequency of communication (Gateway). Frequency = 868300000 // LoRaSNR indicates Signal to noise ratio (Gateway). LoRaSNR = 7 // RFChain of communication (Gateway). RFChain = 1 // Size of packet (Gateway). Size = 23 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gateway ¶
type Gateway struct {
Config
}
Gateway simulate data based on LoRaWAN protocol from an ABP device and one gateway. It encrypts data and you will need a lora server to decode it.
Click to show internal directories.
Click to hide internal directories.