| IRremoteESP8266
    | 
Class for handling detailed EcoClim A/C 56 bit messages. More...
#include <ir_Ecoclim.h>

| Public Member Functions | |
| IREcoclimAc (const uint16_t pin, const bool inverted=false, const bool use_modulation=true) | |
| Class constructor.  More... | |
| void | stateReset (void) | 
| Reset the internal state to a fixed known good state.  More... | |
| void | send (const uint16_t repeat=kNoRepeat) | 
| Send the current internal state as an IR message.  More... | |
| int8_t | calibrate (void) | 
| Run the calibration to calculate uSec timing offsets for this platform.  More... | |
| void | begin (void) | 
| Set up hardware to be able to send a message.  More... | |
| void | on (void) | 
| Change the power setting to On.  More... | |
| void | off (void) | 
| Change the power setting to Off.  More... | |
| void | setPower (const bool on) | 
| Change the power setting.  More... | |
| bool | getPower (void) const | 
| Get the value of the current power setting.  More... | |
| void | setTemp (const uint8_t celsius) | 
| Set the temperature.  More... | |
| uint8_t | getTemp (void) const | 
| Get the current temperature setting.  More... | |
| void | setSensorTemp (const uint8_t celsius) | 
| Set the sensor temperature.  More... | |
| uint8_t | getSensorTemp (void) const | 
| Get the sensor temperature setting.  More... | |
| void | setFan (const uint8_t speed) | 
| Set the speed of the fan.  More... | |
| uint8_t | getFan (void) const | 
| Get the current fan speed setting.  More... | |
| void | setMode (const uint8_t mode) | 
| Set the operating mode of the A/C.  More... | |
| uint8_t | getMode (void) const | 
| Get the operating mode setting of the A/C.  More... | |
| void | setClock (const uint16_t nr_of_mins) | 
| Set the clock time on the A/C unit.  More... | |
| uint16_t | getClock (void) const | 
| Get the clock time of the A/C unit.  More... | |
| uint64_t | getRaw (void) const | 
| Get a copy of the internal state as a valid code for this protocol.  More... | |
| void | setRaw (const uint64_t new_code) | 
| Set the internal state from a valid code for this protocol.  More... | |
| void | setType (const uint8_t code) | 
| Set the Unit type/DIP switch settings for the remote.  More... | |
| uint8_t | getType (void) const | 
| Get the Unit type/DIP switch settings of the remote.  More... | |
| stdAc::state_t | toCommon (void) const | 
| Convert the current internal state into its stdAc::state_t equivalent.  More... | |
| void | setOnTimer (const uint16_t nr_of_mins) | 
| Set & enable the On Timer for the A/C.  More... | |
| uint16_t | getOnTimer (void) const | 
| Get the On Timer for the A/C.  More... | |
| bool | isOnTimerEnabled (void) const | 
| Check if the On Timer is enabled.  More... | |
| void | disableOnTimer (void) | 
| Disable & clear the On Timer.  More... | |
| void | setOffTimer (const uint16_t nr_of_mins) | 
| Set & enable the Off Timer for the A/C.  More... | |
| uint16_t | getOffTimer (void) const | 
| Get the Off Timer for the A/C.  More... | |
| bool | isOffTimerEnabled (void) const | 
| Check if the Off Timer is enabled.  More... | |
| void | disableOffTimer (void) | 
| Disable & clear the Off Timer.  More... | |
| String | toString (void) const | 
| Convert the internal state into a human readable string.  More... | |
| Static Public Member Functions | |
| static uint8_t | convertMode (const stdAc::opmode_t mode) | 
| Convert a standard A/C mode into its native mode.  More... | |
| static uint8_t | convertFan (const stdAc::fanspeed_t speed) | 
| Convert a stdAc::fanspeed_t enum into it's native speed.  More... | |
| static stdAc::opmode_t | toCommonMode (const uint8_t mode) | 
| Convert a native mode to it's common stdAc::opmode_t equivalent.  More... | |
| static stdAc::fanspeed_t | toCommonFanSpeed (const uint8_t speed) | 
| Convert a native fan speed into its stdAc equivalent.  More... | |
| Private Attributes | |
| IRsend | _irsend | 
| Instance of the IR send class.  More... | |
| EcoclimProtocol | _ | 
| The state of the IR remote in IR code form.  More... | |
Class for handling detailed EcoClim A/C 56 bit messages.
| 
 | explicit | 
Class constructor.
| [in] | pin | GPIO to be used when sending. | 
| [in] | inverted | Is the output signal to be inverted? | 
| [in] | use_modulation | Is frequency modulation to be used? | 
| void IREcoclimAc::begin | ( | void | ) | 
Set up hardware to be able to send a message.
| 
 | inline | 
Run the calibration to calculate uSec timing offsets for this platform.
| 
 | static | 
Convert a stdAc::fanspeed_t enum into it's native speed.
| [in] | speed | The enum to be converted. | 
| 
 | static | 
Convert a standard A/C mode into its native mode.
| [in] | mode | A stdAc::opmode_t to be converted to it's native equivalent. | 
| void IREcoclimAc::disableOffTimer | ( | void | ) | 
Disable & clear the Off Timer.
| void IREcoclimAc::disableOnTimer | ( | void | ) | 
Disable & clear the On Timer.
| uint16_t IREcoclimAc::getClock | ( | void | ) | const | 
Get the clock time of the A/C unit.
| uint8_t IREcoclimAc::getFan | ( | void | ) | const | 
Get the current fan speed setting.
| uint8_t IREcoclimAc::getMode | ( | void | ) | const | 
Get the operating mode setting of the A/C.
| uint16_t IREcoclimAc::getOffTimer | ( | void | ) | const | 
Get the Off Timer for the A/C.
| uint16_t IREcoclimAc::getOnTimer | ( | void | ) | const | 
Get the On Timer for the A/C.
| bool IREcoclimAc::getPower | ( | void | ) | const | 
Get the value of the current power setting.
| uint64_t IREcoclimAc::getRaw | ( | void | ) | const | 
Get a copy of the internal state as a valid code for this protocol.
| uint8_t IREcoclimAc::getSensorTemp | ( | void | ) | const | 
Get the sensor temperature setting.
| uint8_t IREcoclimAc::getTemp | ( | void | ) | const | 
Get the current temperature setting.
| uint8_t IREcoclimAc::getType | ( | void | ) | const | 
Get the Unit type/DIP switch settings of the remote.
| bool IREcoclimAc::isOffTimerEnabled | ( | void | ) | const | 
Check if the Off Timer is enabled.
| bool IREcoclimAc::isOnTimerEnabled | ( | void | ) | const | 
Check if the On Timer is enabled.
| void IREcoclimAc::off | ( | void | ) | 
Change the power setting to Off.
| void IREcoclimAc::on | ( | void | ) | 
Change the power setting to On.
| void IREcoclimAc::send | ( | const uint16_t | repeat = kNoRepeat | ) | 
Send the current internal state as an IR message.
| [in] | repeat | Nr. of times the message will be repeated. | 
| void IREcoclimAc::setClock | ( | const uint16_t | nr_of_mins | ) | 
Set the clock time on the A/C unit.
| [in] | nr_of_mins | Nr. of minutes past midnight. | 
| void IREcoclimAc::setFan | ( | const uint8_t | speed | ) | 
Set the speed of the fan.
| [in] | speed | The desired setting. | 
| void IREcoclimAc::setMode | ( | const uint8_t | mode | ) | 
Set the operating mode of the A/C.
| [in] | mode | The desired operating mode. | 
| void IREcoclimAc::setOffTimer | ( | const uint16_t | nr_of_mins | ) | 
Set & enable the Off Timer for the A/C.
| [in] | nr_of_mins | The time, in minutes since midnight. | 
| void IREcoclimAc::setOnTimer | ( | const uint16_t | nr_of_mins | ) | 
Set & enable the On Timer for the A/C.
| [in] | nr_of_mins | The time, in minutes since midnight. | 
| void IREcoclimAc::setPower | ( | const bool | on | ) | 
Change the power setting.
| [in] | on | true, the setting is on. false, the setting is off. | 
| void IREcoclimAc::setRaw | ( | const uint64_t | new_code | ) | 
Set the internal state from a valid code for this protocol.
| [in] | new_code | A valid code for this protocol. | 
| void IREcoclimAc::setSensorTemp | ( | const uint8_t | celsius | ) | 
Set the sensor temperature.
| [in] | celsius | The temperature in degrees celsius. | 
| void IREcoclimAc::setTemp | ( | const uint8_t | celsius | ) | 
Set the temperature.
| [in] | celsius | The temperature in degrees celsius. | 
| void IREcoclimAc::setType | ( | const uint8_t | code | ) | 
Set the Unit type/DIP switch settings for the remote.
| [in] | code | The binary representation of the remote's 4 DIP switches. | 
| void IREcoclimAc::stateReset | ( | void | ) | 
Reset the internal state to a fixed known good state.
| stdAc::state_t IREcoclimAc::toCommon | ( | void | ) | const | 
Convert the current internal state into its stdAc::state_t equivalent.
| 
 | static | 
| 
 | static | 
Convert a native mode to it's common stdAc::opmode_t equivalent.
| [in] | mode | A native operation mode to be converted. | 
| String IREcoclimAc::toString | ( | void | ) | const | 
Convert the internal state into a human readable string.
| 
 | private | 
The state of the IR remote in IR code form.
| 
 | private | 
Instance of the IR send class.
 1.8.17
 1.8.17