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 1 (

Member Function Documentation

◆ get()

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

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

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

◆ set()

bool set ( int  value)
Description
This api allows the user to set the delay of the received window 1
Syntax
api.lorawan.rx1dl.set(value)
Parameters
valuethe delay of the received window 1
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 1  %s\r\n", api.lorawan.rx1dl.set(1000) ? "Success" : "Fail");
  }

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