![]() |
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 frequency %s\r\n", api.lorawan.pfreq.set(868000000) ? "Success" : "Fail"); } void loop() { Serial.printf("P2P mode frequency = %d\r\n", api.lorawan.pfreq.get()); delay(1000); }
bool set | ( | uint32_t | value | ) |
value | the frequency for P2P mode |
TRUE | for setting frequency success |
FALSE | for setting frequency 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 frequency %s\r\n", api.lorawan.pfreq.set(868000000) ? "Success" : "Fail"); } void loop() { Serial.printf("P2P mode frequency = %d\r\n", api.lorawan.pfreq.get()); delay(1000); }