Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
IRHaierAC Class Reference

Public Member Functions

 IRHaierAC (uint16_t pin)
 
void begin ()
 
void setCommand (const uint8_t command)
 
uint8_t getCommand ()
 
void setTemp (const uint8_t temp)
 
uint8_t getTemp ()
 
void setFan (const uint8_t speed)
 
uint8_t getFan ()
 
uint8_t getMode ()
 
void setMode (const uint8_t mode)
 
bool getSleep ()
 
void setSleep (const bool state)
 
bool getHealth ()
 
void setHealth (const bool state)
 
int16_t getOnTimer ()
 
void setOnTimer (const uint16_t mins)
 
int16_t getOffTimer ()
 
void setOffTimer (const uint16_t mins)
 
void cancelTimers ()
 
uint16_t getCurrTime ()
 
void setCurrTime (const uint16_t mins)
 
uint8_t getSwing ()
 
void setSwing (const uint8_t state)
 
uint8_t * getRaw ()
 
void setRaw (uint8_t new_code[])
 
std::string toString ()
 

Static Public Member Functions

static bool validChecksum (uint8_t state[], const uint16_t length=HAIER_AC_STATE_LENGTH)
 
static std::string timeToString (const uint16_t nr_mins)