I have a use case that requires the ability to set a timer duration (period) dynamically.
Using a virtual resource would be ideal.
I need to be able to update the timer duration (period) in an edge action.
The particular test is to set a value for ULPM “up time” duration – i.e. how long
the device should stay “awake” between ULPM sessions.
I have a test working with a timer duration (period) specified in the timer resource, but
I need to be able to read this value from a VR and update the ulpm_up_timer period with the new value in an EA.
I cant see how to accomplish this. Two timers are currently in use:
bootup_timer
ulpm_up_timer
So the timer config looks like:
timer
config <output> = {"bootup_timer":{"period":1,"repeat":1,"autostart":true},"ulpm_up_timer":{"period":300,"repeat":1,"autostart":false}} (ts: 1684700154.699300)
data type = JSON (e.g., '{"bootup_timer":{"period":1,"repeat":1,"autostart":true},"ulpm_up_timer":{"period":300,"repeat":1,"autostart":false}}')
default = JSON: {"bootup_timer":{"period":1,"repeat":1,"autostart":true},"ulpm_up_timer":{"period":300,"repeat":1,"autostart":false}}
Is it possible to update ulpm_up_timer “period” to new value in edge action?
Many Thanks!