![]() |
SX126x-Arduino
2.0.1
|
#include <LoRaMac.h>
Data Fields | |
uint8_t | fPort |
void * | fBuffer |
uint16_t | fBufferSize |
int8_t | Datarate |
uint8_t | NbTrials |
LoRaMAC MCPS-Request for a confirmed frame
uint8_t sMcpsReqConfirmed::fPort |
Frame port field. Must be set if the payload is not empty. Use the application specific frame port values: [1...223]
LoRaWAN Specification V1.0.2, chapter 4.3.2
void* sMcpsReqConfirmed::fBuffer |
Pointer to the buffer of the frame payload
uint16_t sMcpsReqConfirmed::fBufferSize |
Size of the frame payload
int8_t sMcpsReqConfirmed::Datarate |
Uplink datarate, if ADR is off
uint8_t sMcpsReqConfirmed::NbTrials |
Number of trials to transmit the frame, if the LoRaMAC layer did not receive an acknowledgment. The MAC performs a datarate adaptation, according to the LoRaWAN Specification V1.0.2, chapter 18.4, according to the following table:
Transmission nb | Data Rate |
---|---|
1 (first) | DR |
2 | DR |
3 | max(DR-1,0) |
4 | max(DR-1,0) |
5 | max(DR-2,0) |
6 | max(DR-2,0) |
7 | max(DR-3,0) |
8 | max(DR-3,0) |
Note, that if NbTrials is set to 1 or 2, the MAC will not decrease the datarate, in case the LoRaMAC layer did not receive an acknowledgment