| SX126x-Arduino 2.0.1

Data Fields
sMcpsReqConfirmed Struct Reference
LoRa MAC layer implementation

`#include <LoRaMac.h>`

## Data Fields
uint8_t | fPort
void * | fBuffer
uint16_t | fBufferSize
int8_t | Datarate
uint8_t | NbTrials

## Detailed Description

LoRaMAC MCPS-Request for a confirmed frame

## Field Documentation

## ◆ fPort

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

## ◆ fBuffer

void* sMcpsReqConfirmed::fBuffer

Pointer to the buffer of the frame payload

## ◆ fBufferSize

uint16_t sMcpsReqConfirmed::fBufferSize

Size of the frame payload

## ◆ Datarate

int8_t sMcpsReqConfirmed::Datarate

Uplink datarate, if ADR is off

## ◆ NbTrials

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

The documentation for this struct was generated from the following file:

- src/mac/LoRaMac.h