RUI3 (RAK Unified Interface 3) - RAK4631

Public Member Functions

uint8_t get ()
 
bool set (uint8_t value)
 

Detailed Description

Description
This api gets or sets the times of retransmission of Confirm packet data

Member Function Documentation

◆ get()

uint8_t get ( )
Description
This api allows to get the times of retransmission of Confirm packet data
Syntax
api.lorawan.rety.get()
Returns
the retry times for retransmission
Example
void setup()
{
    Serial.begin(115200);

    Serial.printf("Set the times of retansmission %s\n\r", api.lorawan.rety.set(1) ? "Success" : "Fail");
}

void loop()
{
    Serial.printf("The time of retransmission = %d\n\r", api.lorawan.rety.get());

    delay(1000);
}

◆ set()

bool set ( uint8_t  value)
Description
This api allows to set the times of retransmission of Confirm packet data
Syntax
api.lorawan.rety.set(value)
Note
Cant only input 0 ~ 7 times
Parameters
valuethe retry times for retransmission
Returns
bool
Return values
TRUEfor setting retry time success
FALSEfor setting retry times failure
Example
  void setup()
  {
      Serial.begin(115200);

      Serial.printf("Set the times of retansmission %s\n\r", api.lorawan.rety.set(1) ? "Success" : "Fail");
  }

  void loop()
  {
      Serial.printf("The times of retransmission = %d\n\r", api.lorawan.rety.get());

      delay(1000);
  }