-
Notifications
You must be signed in to change notification settings - Fork 2
/
kdevice_Bodenfeuchte.h
40 lines (37 loc) · 1.53 KB
/
kdevice_Bodenfeuchte.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#define MANUFACTURER_ID 57005
#define DEVICE_ID 1
#define REVISION 0
#define COMOBJ_moisture 0 //ok
#define COMOBJ_LowerAlarm 1 //ok
#define COMOBJ_UpperAlarm 2 //ok
#define COMOBJ_Resistance 3 //ok
#define PARAM_Geraeteanlaufzeit 0
#define PARAM_cyclic 1
#define PARAM_cycle 2
#define PARAM_DeltaMoisture 3
#define PARAM_SendOnChange 4
#define PARAM_LowerAlarm 5 //ok
#define PARAM_SendOnLowerAlarm 6 //ok
#define PARAM_UpperAlarm 7 //ok
#define PARAM_SendOnUpperAlarm 8 //ok
#define PARAM_Samples 9
KnxComObject KnxDevice::_comObjectsList[] = {
/* Index 0 - moisture */ KnxComObject(KNX_DPT_9_006, 0x34),
/* Index 1 - LowerAlarm */ KnxComObject(KNX_DPT_1_001, 0x34),
/* Index 2 - UpperAlarm */ KnxComObject(KNX_DPT_1_001, 0x34),
/* Index 3 - Resistance */ KnxComObject(KNX_DPT_7_001, 0x34)
};
const byte KnxDevice::_numberOfComObjects = sizeof (_comObjectsList) / sizeof (KnxComObject); // do not change this code
byte KonnektingDevice::_paramSizeList[] = {
/* Index 0 - Geraeteanlaufzeit */ PARAM_UINT8,
/* Index 1 - cyclic */ PARAM_UINT8,
/* Index 2 - cycle */ PARAM_UINT32,
/* Index 3 - DeltaMoisture */ PARAM_UINT8,
/* Index 4 - SendOnChange */ PARAM_UINT8,
/* Index 5 - LowerAlarm */ PARAM_INT16,
/* Index 6 - SendOnLowerAlarm */ PARAM_UINT8,
/* Index 7 - UpperAlarm */ PARAM_INT16,
/* Index 8 - SendOnUpperAlarm */ PARAM_UINT8,
/* Index 9 - Samples */ PARAM_UINT16
};
const int KonnektingDevice::_numberOfParams = sizeof (_paramSizeList); // do not change this code