RUI3 (RAK Unified Interface 3) - RAK4631

Public Member Functions

int get ()
 
bool set (int value)
 

Detailed Description

Description
This api allows the user to access the delay of the received window 2

Member Function Documentation

◆ get()

int get ( )
Description
This api allows the user to get the delay of the received window 2
Syntax
api.lorawan.rx2dl.get()
Returns
the delay of the received window 2
Example
void setup()
{
    Serial.begin(115200);
}

void loop()
{
    Serial.printf("The received delay on RX window 2 is %d\r\n", api.lorawan.rdx2dl.get());
    delay(1000);
}

◆ set()

bool set ( int  value)
Description
This api allows the user to set the delay of the received window 2
Syntax
api.lorawan.rx2dl.set(value)
Parameters
valuethe delay of the received window 2
Returns
bool
Return values
TRUEfor setting delay success
FALSEfor setting delay failure
Example
  void setup()
  {
      Serial.begin(115200);

      Serial.printf("Set the received delay on RX window 2  %s\r\n", api.lorawan.rx2dl.set(2000) ? "Success" : "Fail");
  }

  void loop()
  {
      Serial.printf("The received delay on RX window 2 is %d\r\n", api.lorawan.rx2dl.get());
      delay(1000);
  }