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 1

Member Function Documentation

◆ get()

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

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

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

◆ set()

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

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