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

Public Member Functions

 IRGreeAC (uint16_t pin)
 
void stateReset ()
 
void begin ()
 
void on ()
 
void off ()
 
void setPower (const bool state)
 
bool getPower ()
 
void setTemp (const uint8_t temp)
 
uint8_t getTemp ()
 
void setFan (const uint8_t speed)
 
uint8_t getFan ()
 
void setMode (const uint8_t new_mode)
 
uint8_t getMode ()
 
void setLight (const bool state)
 
bool getLight ()
 
void setXFan (const bool state)
 
bool getXFan ()
 
void setSleep (const bool state)
 
bool getSleep ()
 
void setTurbo (const bool state)
 
bool getTurbo ()
 
void setSwingVertical (const bool automatic, const uint8_t position)
 
bool getSwingVerticalAuto ()
 
uint8_t getSwingVerticalPosition ()
 
uint8_t * getRaw ()
 
void setRaw (uint8_t new_code[])
 
std::string toString ()
 

Static Public Member Functions

static bool validChecksum (const uint8_t state[], const uint16_t length=GREE_STATE_LENGTH)