| LightHub v4.0.0 Smarthome controller firmware

out_multivent.h
Go to the documentation of this file.
1 #pragma once
2 #include "options.h"
3 #ifndef MULTIVENT_DISABLE
4 #include <abstractout.h>
5 #include <item.h>
6 #include "itemCmd.h"
7
8
9 //static int8_t motorQuote = 0;
10
11 class out_Multivent : public abstractOut {
12 public:
13
14 out_Multivent(Item * _item):abstractOut(_item){getConfig();};
15 int Setup() override;
16 int Poll(short cause) override;
17 int Stop() override;
18 int Status() override;
19 //int isActive() override;
20 int getChanType() override;
21 int getDefaultStorageType(){return ST_PERCENTS255;};
22 int Ctrl(itemCmd cmd, char* subItem=NULL, bool toExecute=true) override;
23 protected:
24 void getConfig();
25 aJsonObject * gatesObj;
26 };
27 #endif
itemCmd.h
itemCmd
Definition: itemCmd.h:153
out_Multivent::gatesObj
aJsonObject * gatesObj
Definition: out_multivent.h:25
out_Multivent::Setup
int Setup() override
Remove?? Now getChanType used instead.
Definition: out_multivent.cpp:20
options.h
abstractOut
Definition: abstractout.h:8
ST_PERCENTS255
#define ST_PERCENTS255
Definition: itemCmd.h:83
out_Multivent::out_Multivent
out_Multivent(Item *_item)
Definition: out_multivent.h:14
out_Multivent::Poll
int Poll(short cause) override
Definition: out_multivent.cpp:85
out_Multivent::Stop
int Stop() override
Definition: out_multivent.cpp:58
out_Multivent::getChanType
int getChanType() override
Definition: out_multivent.cpp:90
Item
Definition: item.h:104
out_Multivent::getDefaultStorageType
int getDefaultStorageType()
Definition: out_multivent.h:21
out_Multivent
Definition: out_multivent.h:11
abstractout.h
out_Multivent::Status
int Status() override
Definition: out_multivent.cpp:65
out_Multivent::Ctrl
int Ctrl(itemCmd cmd, char *subItem=NULL, bool toExecute=true) override
Definition: out_multivent.cpp:97
out_Multivent::getConfig
void getConfig()
Definition: out_multivent.cpp:13
item.h