RAK3172 Change Mode

Hello
I use ready-made APIs with RUI3 software. My device first receives data from the end device via P2P. Then I want it to send the data it receives to LORAWAN, but when I change the Network mode, it resets and the data I receive is lost. How do I keep the data I receive even if the device is reset?

Hi @hans11 ,

The device has to reset when mode is being change. Any values/data you need stored in volatile memory will be lost. You can use the flash memory of the device via RUI3 API. @beegee have used it in one of this codes - RAK3172 RUI3 Flash API usage

You can also save externally to separate non-voltage memory device like the common I2C EEPROMs.