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 join delay on RX window 2

Member Function Documentation

◆ get()

int get ( )
Description
This api allows the user to access the join delay on RX window 2
Syntax
api.lorawan.jn2dl.get()
Returns
the join delay on RX window 2(Type: bool)
Example
void setup()
{
    Serial.begin(115200);
}

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

◆ set()

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

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

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