![]() |
RUI3 (RAK Unified Interface 3) - RAK4631
|
Public Member Functions | |
int32_t | get () |
bool | set (uint8_t value) |
int32_t get | ( | ) |
0 | EU433 |
1 | CN470 |
2 | RU864 |
3 | IN865 |
4 | EU868 |
5 | US915 |
6 | AU915 |
7 | KR920 |
8 | AS923-1 |
9 | AS923-2 |
10 | AS923-3 |
11 | AS923-4 |
void setup() { Serial.begin(115200); Serial.printf("Set LoRa region %s\r\n", api.lorawan.band.set(4) ? "Success" : "Fail"); } void loop() { Serial.printf("LoRa region = %d\r\n", api.lorawan.band.get()); delay(1000); }
bool set | ( | uint8_t | value | ) |
value | the active region to set |
TRUE | for setting active region success |
FALSE | for setting active region failure |
void setup() { Serial.begin(115200); Serial.printf("Set LoRa region %s\r\n", api.lorawan.band.set(4) ? "Success" : "Fail"); } void loop() { Serial.printf("LoRa region = %d\r\n", api.lorawan.band.get()); delay(1000); }