Skip to content

Polling a device for battery level with the CCAPI #289

Answered by marcus-j-davies
jmbaute asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @jmbaute,

What you have is correct.

But the clue is in the fact it's a battery operated device.
It is not awake to receive your request to report the battery - and in fact may not be needed at all...

You see, battery operated devices employ a "wake up" interval, and in doing so, will automatically report the battery when they wake up in that interval.

Can you change it? - sure, as long as it does actually have a wake interval, see below.

Battery operated devices are not "listening" for requests - and will only awake on the interval I mentioned or when they are triggered to do so, i.e a change in temp, motion etc etc

Any requests you have sent will be queued, and processed when the dev…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@jmbaute
Comment options

Answer selected by jmbaute
Comment options

You must be logged in to vote
2 replies
@jmbaute
Comment options

@marcus-j-davies
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants