RUI3 compilation error?

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(“:x: 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 provided

exit 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

Documentation needs an update

api.lora.nwm.set(2)

does not exist (anymore)

FSK is rarely used, I have to check how to switch to FSK, it is basically just a variant of the LoRa mode.

To get into LoRa mode you use

api.lora.nwm.set();

and then use
api.lora.pbr.set(uint32_t bitrate); // set FSK bitrate
api.lora.pfdev(uint32_t value); // set FSK modem frequency deviation

There might be more required, but I honestly don’t know. I will ask our SW team.

Thanks.
Apparently its needed for a OpenGliderNetwork tracker :frowning: Looking at their docs atleast…
http://wiki.glidernet.org/ogn-tracking-protocol

They say it requires GFSK, which is an enhanced version of FSK.
I don’t think RUI3 supports GFSK.

Latest RUI3 V4.2.1 you cannot switch to FSK.
You need to use RUI3 V4.1.1