Hello!
As according to docs
set()
This API sets the network working mode to P2P.
api.lora.nwm.set(value);
| Function | bool set() |
|---|---|
| Returns | bool |
| Return Values | TRUE for setting network working mode success |
| FALSE for setting network working mode failure |
I am doing this:
// RUI3 API: Set P2P_FSK mode (mode 2)
if (api.lora.nwm.set(2) == false) {
Serial.println(“
Failed to set P2P_FSK mode”);
return;
}
Error I am getting:
C:\Users\Kevin\Documents\Arduino\sketch_aug27a\RAK3172_OGN_Tracker\RAK3172_OGN_Tracker.ino: In function ‘void setupOGN_FSK()’:
C:\Users\Kevin\Documents\Arduino\sketch_aug27a\RAK3172_OGN_Tracker\RAK3172_OGN_Tracker.ino:181:25: error: no matching function for call to ‘RAKLoraP2P::nwm::set(int)’
181 | if (api.lora.nwm.set(2) == false) {
| ^
In file included from C:\Users\Kevin\AppData\Local\Arduino15\packages\rak_rui\hardware\stm32\4.2.0/cores/STM32WLE/component/rui_v3_api/RAKUnifiedApi.h:17,
from C:\Users\Kevin\AppData\Local\Arduino15\packages\rak_rui\hardware\stm32\4.2.0/cores/STM32WLE/component/rui_v3_api/ruiTop.h:919,
from C:\Users\Kevin\AppData\Local\Arduino15\packages\rak_rui\hardware\stm32\4.2.0/cores/STM32WLE/component/rui_v3_api/Arduino.h:1,
from C:\Users\Kevin\AppData\Local\arduino\sketches\9F723B0386D3C44A0384F98E797D6331\sketch\RAK3172_OGN_Tracker.ino.cpp:1:
C:\Users\Kevin\AppData\Local\Arduino15\packages\rak_rui\hardware\stm32\4.2.0/cores/STM32WLE/component/rui_v3_api/RAKLoRa.h:1659:10: note: candidate: ‘bool RAKLoraP2P::nwm::set()’
1659 | bool set();
| ^~~
C:\Users\Kevin\AppData\Local\Arduino15\packages\rak_rui\hardware\stm32\4.2.0/cores/STM32WLE/component/rui_v3_api/RAKLoRa.h:1659:10: note: candidate expects 0 arguments, 1 providedexit status 1
Compilation error: no matching function for call to ‘RAKLoraP2P::nwm::set(int)’
Any idea? I am trying to make a functional OpenGliderNetwork tracker using the RAK3172.
http://wiki.glidernet.org/ogn-tracking-protocol