Documentation ¶
Index ¶
Constants ¶
View Source
const Anslen = 3
Anslen is the length of the answer
View Source
const Reqlen = 1
Reqlen is the length of the request
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DevStatusAns ¶
type DevStatusAns interface { commands.Fopter // +=========+================================================================+ // | Battery | Description | // +=========+================================================================+ // | 0 | The end-device is connected to an external power source. | // +---------+----------------------------------------------------------------+ // | 1...254 | The battery level, 1 being at minimum and 254 being at maximum | // +---------+----------------------------------------------------------------+ // | 255 | The end-device was not able to measure the battery level. | // +---------+----------------------------------------------------------------+ Battery() uint8 // The margin (Margin) is the demodulation signal-to-noise ratio in dB // rounded to the nearest integer value for the last successfully received // DevStatusReq command. It is a signed integer of 6 bits with a minimum // value of -32 and a maximum value of 31. // +========+=====+========+ // | Bits | 7:6 | 5:0 | // +========+=====+========+ // | Status | RFU | Margin | // +--------+-----+--------+ Margin() uint8 }
DevStatusAns contains the status of the end-device If a DevStatusReq is received by an end-device, it responds with a DevStatusAns command. +======================+=========+========+ | Size (bytes) | 1 | 1 | +======================+=========+========+ | DevStatusAns Payload | Battery | Margin | +----------------------+---------+--------+
type DevStatusReq ¶
DevStatusReq requests for the status of the end-device With the DevStatusReq command a network server may request status information from an end-device.
Click to show internal directories.
Click to hide internal directories.