Skip to content

Battery device wakeup parameters #6094

Closed Answered by AlCalzone
apella12 asked this question in General
Discussion options

You must be logged in to vote

There's not really a hard reason for the 1s awake time, more of a gut feeling. I'd accept a PR to make this configurable with a driver option, like we do with other timeouts.
The 1000ms is currently hardcoded here:

setTimeout(() => sendNodeToSleep(node), 1000).unref(),


What seems unusual to me is why the wake parameters are even polled on wakeup at all

This comes from the specifications:

CL:0084.01.52.03.1 A controlling node SHOULD read the Wake Up Interval of a supporting node when the delays between
Wake Up periods are larger than what was last set at the supporting node.

The driver reme…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by apella12
Comment options

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

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants