I would like to change the frequency frequently in RAK3172 LoRa P2P mode (RUI3). I plan to control the module from an external MCU using AT commands.
How can I add a custom AT command that changes the operating frequency without saving the new value to non-volatile memory?
I would like to avoid writing to flash memory every time the frequency changes, since flash has a limited number of write cycles. My goal is to update the frequency dynamically during operation without affecting the lifetime of the non-volatile storage.
It is at the moment not possible to change the P2P frequency with AT commands without triggering a flash write.
It would require a custom RUI3 firmware to do this.
I tried to add a custom AT command that would change the radio frequency without saving the new value to flash memory. I used the function api.lora.pfreq.set() , but it appears that this function also writes the setting to flash.
Which function should I use if I want to change the operating frequency only at runtime, without storing the new value in flash?