out_ac.h
Go to the documentation of this file.
#pragma once
#ifndef AC_DISABLE
#include <abstractout.h>
#include "itemCmd.h"
#define LEN_B 37
#define B_CUR_TMP 13 //Текущая температура
#define B_CMD 17 // 00-команда 7F-ответ ???
#define B_MODE 23 //04 - DRY, 01 - cool, 02 - heat, 00 - smart 03 - вентиляция
#define B_FAN_SPD 25 //Скорость 02 - min, 01 - mid, 00 - max, 03 - auto
#define B_SWING 27 //01 - верхний и нижний предел вкл. 00 - выкл. 02 - левый/правый вкл. 03 - оба вкл
#define B_LOCK_REM 28 //80 блокировка вкл. 00 - выкл
#define B_POWER 29 //on/off 01 - on, 00 - off (10, 11)-Компрессор??? 09 - QUIET
#define B_FRESH 31 //fresh 00 - off, 01 - on
#define B_SET_TMP 35 //Установленная температура
#define S_LOCK S_ADDITIONAL+1
#define S_QUIET S_ADDITIONAL+2
#define S_SWING S_ADDITIONAL+3
//#define S_RAW S_ADDITIONAL+4
extern void modbusIdle(void) ;
class out_AC : public abstractOut {
public:
out_AC(Item * _item):abstractOut(_item){};
int Setup() override;
int Poll(short cause) override;
int Stop() override;
int Status() override;
int isActive() override;
int getDefaultStorageType(){return ST_FLOAT_CELSIUS;};
int Ctrl(itemCmd cmd, char* subItem=NULL, bool toExecute=true) override;
protected:
void InsertData(byte data[], size_t size);
};
#endif
out_AC::isActive
int isActive() override
Definition: out_ac.cpp:238
itemCmd.h
itemCmd
Definition: itemCmd.h:153
modbusIdle
void modbusIdle(void)
Definition: main.cpp:2406
out_AC::InsertData
void InsertData(byte data[], size_t size)
Definition: out_ac.cpp:52
out_AC
Definition: out_ac.h:24
out_AC::Poll
int Poll(short cause) override
Definition: out_ac.cpp:243
ST_FLOAT_CELSIUS
#define ST_FLOAT_CELSIUS
Definition: itemCmd.h:93
out_AC::Setup
int Setup() override
Remove?? Now getChanType used instead.
Definition: out_ac.cpp:216
abstractOut
Definition: abstractout.h:8
out_AC::out_AC
out_AC(Item *_item)
Definition: out_ac.h:27
out_AC::Status
int Status() override
Definition: out_ac.cpp:233
out_AC::Stop
int Stop() override
Definition: out_ac.cpp:225
out_AC::getDefaultStorageType
int getDefaultStorageType()
Definition: out_ac.h:33
Item
Definition: item.h:104
out_AC::Ctrl
int Ctrl(itemCmd cmd, char *subItem=NULL, bool toExecute=true) override
Definition: out_ac.cpp:270
abstractout.h
data
byte data[37]
Definition: out_ac.cpp:31