![]() |
RUI3 (RAK Unified Interface 3) - RAK4631
|
Public Member Functions | |
uint32_t | get () |
bool | set (uint32_t value) |
uint32_t get | ( | ) |
void setup() { Serial.begin(115200); Serial.printf("Set Node device work mode %s\r\n", api.lorawan.nwm.set(0) ? "Success" : "Fail"); Serial.printf("Set P2P mode bandwidth %s\r\n", api.lorawan.pbw.set(125) ? "Success" : "Fail"); } void loop() { Serial.printf("P2P mode bandwith = %d\r\n", api.lorawan.pbw.get()); delay(1000); }
bool set | ( | uint32_t | value | ) |
value | the P2P bandwidth |
TRUE | for setting P2P bandwidth success |
FALSE | for setting P2P bandwidth failure |
void setup() { Serial.begin(115200); Serial.printf("Set Node device work mode %s\r\n", api.lorawan.nwm.set(0) ? "Success" : "Fail"); Serial.printf("Set P2P mode bandwidth %s\r\n", api.lorawan.pbw.set(125) ? "Success" : "Fail"); } void loop() { Serial.printf("P2P mode bandwith = %d\r\n", api.lorawan.pbw.get()); delay(1000); }