![]() |
RUI3 (RAK Unified Interface 3) - RAK4631
|
Public Member Functions | |
uint16_t | get () |
bool | set (uint16_t value) |
uint16_t get | ( | ) |
The Preamble length
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 preamble length %s\r\n", api.lorawan.ppl.set(8) ? "Success" : "Fail"); } void loop() { Serial.printf("P2P mode preamble length = %d\r\n", api.lorawan.ppl.get()); delay(1000); }
bool set | ( | uint16_t | value | ) |
value | the P2P preamble length(2-65536) |
TRUE | for setting P2P preamble length success |
FALSE | for setting preamble length 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 preamble length %s\r\n", api.lorawan.ppl.set(8) ? "Success" : "Fail"); } void loop() { Serial.printf("P2P mode preamble length = %d\r\n", api.lorawan.ppl.get()); delay(1000); }