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

Public Member Functions

 IRKelvinatorAC (uint16_t pin)
 
void stateReset ()
 
void begin ()
 
void on ()
 
void off ()
 
void setPower (bool state)
 
bool getPower ()
 
void setTemp (uint8_t temp)
 
uint8_t getTemp ()
 
void setFan (uint8_t fan)
 
uint8_t getFan ()
 
void setMode (uint8_t mode)
 
uint8_t getMode ()
 
void setSwingVertical (bool state)
 
bool getSwingVertical ()
 
void setSwingHorizontal (bool state)
 
bool getSwingHorizontal ()
 
void setQuiet (bool state)
 
bool getQuiet ()
 
void setIonFilter (bool state)
 
bool getIonFilter ()
 
void setLight (bool state)
 
bool getLight ()
 
void setXFan (bool state)
 
bool getXFan ()
 
void setTurbo (bool state)
 
bool getTurbo ()
 
uint8_t * getRaw ()
 
void setRaw (uint8_t new_code[])
 
std::string toString ()
 

Static Public Member Functions

static uint8_t calcBlockChecksum (const uint8_t *block, const uint16_t length=KELVINATOR_STATE_LENGTH/2)
 
static bool validChecksum (const uint8_t state[], const uint16_t length=KELVINATOR_STATE_LENGTH)