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