Skip to content

How to print current or next state? #1547

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

You must be logged in to vote

You will have to write code for it yourself.
You can do something like:

Serial.println(irutils::addModeToString(ac.next.mode, stdAc::opmode_t::kAuto, stdAc::opmode_t::kCool, stdAc::opmode_t::kHeat, stdAc::opmode_t::kDry, stdAc::opmode_t::kFan));

Note: Untested, not even compiled. If it doesn't work, you can work out how to fix it.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by crankyoldgit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants