RUI3 LoRaWAN API
warning
With version V4.1.1 of RUI3, the LoRa P2P functions are separated into a new class and API calls for LoRa have a changed syntax:
| Old | New | Comment |
|---|---|---|
api.lorawan.pXXX | api.lora.pXXX | All LoRa P2P API calls change. |
api.lorawan.registerPyyy | api.lora.registerPyyy | All LoRa P2P callback register API calls change. |
api.lorawan.nwm.set(1) | api.lorawan.nwm.set() | Set device to LoRaWAN mode. |
api.lorawan.nwm.set(0) | api.lora.nwm.set() | Set device to LoRa P2P mode. |
LoRaWAN Data Type
RAK_LORA_McSession
The structure of a multicast group
typedef struct
{
uint8_t McDevclass; ///< The device class of a multicast group
uint32_t McAddress; ///< The address of a multicast group
uint8_t McAppSKey[16]; ///< The application session key of a multicast group
uint8_t McNwkSKey[16]; ///< The Network session key of a multicast group
uint32_t McFrequency; ///< The frequency of a multicast group
int8_t McDatarate; ///< The data rate of a multicast group
uint16_t McPeriodicity; ///< The periodicity of a multicast group
int8_t McGroupID; ///< The group ID of a multicast group
uint8_t entry; ///< The entry of a multicast group
} RAK_LORA_McSession;
McDevclass
The device class of a multicast group
uint8_t McDevclass
McAddress
The address of a multicast group
uint32_t McAddress
McAppSKey
The application session key of a multicast group
uint8_t McAppSKey[16]
McNwkSKey
The Network session key of a multicast group
uint8_t McNwkSKey[16]
McFrequency
The frequency of a multicast group
uint32_t McFrequency
McDatarate
The data rate of a multicast group
int8_t McDatarate
McPeriodicity
The periodicity of a multicast group
uint16_t McPeriodicity
McGroupID
The group ID of a multicast group
int8_t McGroupID
entry
The entry of a multicast group
uint8_t entry
RAK_LORA_chan_rssi_t
The structure of a rssi data
typedef struct
{
uint32_t chan; ///< The channel of a rssi
uint16_t mask; ///< The mask of a rssi
int8_t rssi; ///< The rssi on reception
} RAK_LORA_chan_rssi;"
chan
The channel of a rssi
uint32_t chan