![]() |
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 the data rate %s\r\n", api.lorawan.dr.set(5) ? "Success" : "Fail"); } void loop() { Serial.printf("The data rate is %d\r\n", api.lorawan.dr.get()); delay(1000); }
bool set | ( | uint8_t | value | ) |
value | the data rate |
TRUE | for setting data rate success |
FALSE | for setting date rate failure |
void setup() { Serial.begin(115200); Serial.printf("Set the data rate %s\r\n", api.lorawan.dr.set(5) ? "Success" : "Fail"); } void loop() { Serial.printf("The data rate is %d\r\n", api.lorawan.dr.get()); delay(1000); }