Welcome back @mykhalych90
Depends on the code that you used as a base, but usually I have a function called save_settings() that writes this structure into the flash.
Welcome back @mykhalych90
Depends on the code that you used as a base, but usually I have a function called save_settings() that writes this structure into the flash.
Yes, but how to how to pass my variable value to g_lorawan_settings?
For example, I have var relay_1 (it will it will change by downling command), and I need firstly add it to the g_lorawan_settings struct? and then apply by save_settings()? right? or I’m wrong?))
you can use
// Set the value
g_lorawan_settings.relay_1 = 0;
save_settings();
// Read the value
if (g_lorawan_settings.relay_1 == 1)
{
// Do something
}
to set the value and then save it to the flash or the read the value.
Hello beegee, I am using rak4631 to send data to the gateway through lora. I have a little doubt about Lora transmission interval. The default is #define LORAWAN_APP_INTERVAL 20000. But I want to know what is the minimum value that can be set?
Please don’t hijack existing threads. This is a new question and should be in a new thread.