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

Public Member Functions

 IRDaikinESP (uint16_t pin)
 
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 ()
 
uint8_t getMode ()
 
void setMode (uint8_t mode)
 
void setSwingVertical (bool state)
 
bool getSwingVertical ()
 
void setSwingHorizontal (bool state)
 
bool getSwingHorizontal ()
 
bool getQuiet ()
 
void setQuiet (bool state)
 
bool getPowerful ()
 
void setPowerful (bool state)
 
void setSensor (bool state)
 
bool getSensor ()
 
void setEcono (bool state)
 
bool getEcono ()
 
void setEye (bool state)
 
bool getEye ()
 
void setMold (bool state)
 
bool getMold ()
 
void enableOnTimer (uint16_t starttime)
 
void disableOnTimer ()
 
uint16_t getOnTime ()
 
bool getOnTimerEnabled ()
 
void enableOffTimer (uint16_t endtime)
 
void disableOffTimer ()
 
uint16_t getOffTime ()
 
bool getOffTimerEnabled ()
 
void setCurrentTime (uint16_t time)
 
uint16_t getCurrentTime ()
 
uint8_t * getRaw ()
 
void setRaw (uint8_t new_code[])
 
uint32_t getCommand ()
 
void setCommand (uint32_t value)
 
std::string toString ()
 

Static Public Member Functions

static bool validChecksum (const uint8_t state[], const uint16_t length=DAIKIN_COMMAND_LENGTH)
 
static std::string renderTime (uint16_t timemins)