AWS IoT Device SDK C:
Platform
Platform portability layer
|
Return to main page ↑ |
Arm a timer to expire at the given relative timeout.
This function arms a timer to run its expiration routine at the given time.
If periodMs
is nonzero, the timer should expire periodically at intervals such as:
relativeTimeoutMs
relativeTimeoutMs + periodMs
relativeTimeoutMs + 2 * periodMs
Setting periodMs
to 0
arms a one-shot, non-periodic timer.
[in] | pTimer | The timer to arm. |
[in] | relativeTimeoutMs | When the timer should expire, relative to the time this function is called. |
[in] | periodMs | How often the timer should expire again after relativeTimerMs . |
true
if the timer was successfully armed; false
otherwise.Example