RUI3 (RAK Unified Interface 3) - RAK4631

Public Member Functions

bool get ()
 
bool set (bool value)
 

Detailed Description

Description
This api allows the user to access the notification on received data coming from the network

Member Function Documentation

◆ get()

bool get ( )
Description
This api allows the user to get the notification on received data coming from the network
Syntax
api.lorawan.cfm.get()
Returns
bool
Return values
TRUE: LoRaWan uplink is not on confirm mode
FALSE: LoRaWan uplink is on confirm mode
Example
  void setup()
  {
      Serial.begin(115200);
      
      Serial.printf("Set confirm mode status %s\n\r", api.lorawan.cfm.set(1) ? "Success" : "Fail");
  }

  void loop()
  {
      Serial.printf("Packet is %s\n\r", api.lorawan.cfm.get() ? "CONFIRMED" : "UNCONFIRMED");
  
      delay(1000);
  }

◆ set()

bool set ( bool  value)
Description
This api allows the user to set the notification on received data coming from the network
Syntax
api.lorawan.cfm.set(value)
Parameters
valuethe mode of confirm mode to set
Returns
bool
Return values
TRUEfor setting confirm mode success
FALSEfor setting confirm mode failure
Example
  void setup()
  {
      Serial.begin(115200);

      Serial.printf("Set confirm mode status %s\n\r", api.lorawan.cfm.set(1) ? "Success" : "Fail");
  }

  void loop()
  {
      Serial.printf("Packet is %s\n\r", api.lorawan.cfm.get() ? "CONFIRMED" : "UNCONFIRMED");

      delay(1000);
  }