Skip to content

How its work ac.next.sleep = -1 #1497

Answered by crankyoldgit
MarkEvens asked this question in Q&A
Discussion options

You must be logged in to vote

Sleep is working in library ?

Yes and No. It depends if the protocol supports it and if the library supports it for that protocol.

When it is supported, it is up to the protocol/device on how it is implemented.
Some devices are simply "sleep mode is on or off", some are sleep for X many minutes. Some are start or stop sleep mode at a given time (expressed as Nr. of minutes past midnight typically). Others have no support at all.

and if yes so what is need to set in 'ac.next.sleep = -1 ' for activate it ?

See: https://crankyoldgit.github.io/IRremoteESP8266/doxygen/html/classIRac.html#ad60fbe1488efe2d02307d81b090b3b72

[in]	sleep	Nr. of minutes for sleep mode. -1 is Off, >= 0 is on. Some…

Replies: 4 comments 11 replies

Comment options

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

@crankyoldgit
Comment options

Answer selected by crankyoldgit
Comment options

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

Comment options

You must be logged in to vote
6 replies
@crankyoldgit
Comment options

@MarkEvens
Comment options

@crankyoldgit
Comment options

@MarkEvens
Comment options

@crankyoldgit
Comment options

Comment options

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

@MarkEvens
Comment options

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