Hello, is there any information on how to change the Real-time Configurations at runtime?
thanks in advance
Hello, is there any information on how to change the Real-time Configurations at runtime?
thanks in advance
Hello,
According to the Asset Tracker v2 documentation, this should be possible from the cloud side:
The device retrieves its real-time configurations from the cloud service in either of the following ways:
Upon every established connection to the cloud service, the application will always request its cloud-side device state that contains the latest real-time configurations.
When the device exits Power Saving Mode (PSM) to publish data, and if the cloud-side device configuration has been updated while the device was in PSM, the application will request for the newly changed configuration.
Kind regards,
Øyvind
Thank you very much for your answer. Unfortunately I have problems how to set the real time configurations inaws-IoT. Can I just edit the shadow and the configurations will be applied? Or how does that work exactly?
thanks in advance
Can I just edit the shadow and the configurations will be applied? Or how does that work exactly?
Yes, that is what the web application does as well, it modifies the desired.cfg properties in the device's shadow.
Unfortunately I have problems how to set the real time configurations inaws-IoT.
Can you specify what problems you are facing?
Can I just edit the shadow and the configurations will be applied? Or how does that work exactly?
Yes, that is what the web application does as well, it modifies the desired.cfg properties in the device's shadow.
Unfortunately I have problems how to set the real time configurations inaws-IoT.
Can you specify what problems you are facing?
I am currently in active mode and trying to switch to passive mode via the real time configuration. For this I change the shadow in aws IoT (Manage -> Things->myThingy->Shadows ->Classic Shadow->Edit) like this:
"cfg": {
"act": false,
"gpst": 60,
"actwt": 120,
"mvres": 120,
"mvt": 3600,
"acct": 10
},
Even after waiting for a longer time and switching off/on, it does not switch to passive mode.
If I recompile Asset Tracker V2 and flash it to the Thingy91, then the shadow changes back to
"cfg": {
"act": true,
"gpst": 60,
"actwt": 120,
"mvres": 120,
"mvt": 3600,
"acct": 10
},
and does not take over the previously set values.
Ok, that's not expected.
Which version of the firmware are you running?
I use the mfw_nrf9160_1.2.3 firmware
And which version of the asset_tracker_v2?