![]() |
RUI3 (RAK Unified Interface 3) - RAK4631
|
Public Member Functions | |
bool | get () |
bool | set (bool value) |
bool get | ( | ) |
TRUE | : OTAA |
FALSE | : ABP |
void setup() { Serial.begin(115200); Serial.printf("Set network join mode %s\n\r", api.lorawan.njm.set(1) ? "Success" : "Fail"); } void loop() { Serial.printf("Network join mode is %s\n\r", api.lorawan.cfm.get() ? "OTAA" : "ABP"); delay(1000); }
bool set | ( | bool | value | ) |
value | the mode of network join mode ABP: 0 OTAA: 1 |
TRUE | for setting network join mode success |
FALSE | for setting network join mode failure |
void setup() { Serial.begin(115200); Serial.printf("Set network join mode %s\n\r", api.lorawan.njm.set(1) ? "Success" : "Fail"); } void loop() { Serial.printf("Network join mode is %s\n\r", api.lorawan.njm.get() ? "OTAA" : "ABP"); delay(1000); }