![]() |
RUI3 (RAK Unified Interface 3) - RAK4631
|
Public Member Functions | |
uint8_t | get () |
bool | set (uint8_t value) |
uint8_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 tx power %s\r\n", api.lorawan.ptp.set(22) ? "Success" : "Fail"); } void loop() { Serial.printf("P2P mode tx power = %d\r\n", api.lorawan.ptp.get()); delay(1000); }
bool set | ( | uint8_t | value | ) |
value | the P2P Tx power |
TRUE | for setting P2P Tx power success |
FALSE | for setting P2P Tx power 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 tx power %s\r\n", api.lorawan.ptp.set(22) ? "Success" : "Fail"); } void loop() { Serial.printf("P2P mode tx power = %d\r\n", api.lorawan.ptp.get()); delay(1000); }