![]() |
RUI3 (RAK Unified Interface 3) - RAK4631
|
Public Member Functions | |
bool | get () |
bool | set (uint8_t dutyCycle) |
bool get | ( | ) |
TRUE | : enable duty cycle |
FALSE | : disable duty cycle |
void setup() { Serial.begin(115200); Serial.printf("Enable duty cycle %s\r\n", api.lorawan.dcs.set(1) ? "Success" : "Fail"); } void loop() { Serial.printf("Duty cycle is %s\r\n", api.lorawan.adr.get() ? "Enable" : "Disable"); delay(1000); }
bool set | ( | uint8_t | dutyCycle | ) |
dutyCycle | the LoRaWan duty cycle |
TRUE | for setting duty cycle success |
FALSE | for setting duty cycle failure |
void setup() { Serial.begin(115200); Serial.printf("Enable duty cycle %s\r\n", api.lorawan.dcs.set(1) ? "Success" : "Fail"); } void loop() { Serial.printf("Duty cycle is %s\r\n", api.lorawan.adr.get() ? "Enable" : "Disable"); delay(1000); }