-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbox-somfy-dio.h
43 lines (36 loc) · 862 Bytes
/
box-somfy-dio.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
41
42
43
#ifndef BOX_SOMFY_DIO_H
#define BOX_SOMFY_DIO_H
#include <Arduino.h>
struct somfy_config_remote_t {
const char *mqtt_topic_base;
const char *description;
};
struct config_group_t {
const char *mqtt_topic_base;
const char *description;
const int *remote_indexes;
};
struct dio_config_remote_t {
const char *mqtt_topic_base;
const char *description;
unsigned long sender;
unsigned long interruptor;
};
enum RemoteType { SomfyType, DioType };
struct remote_t {
RemoteType type;
bool is_group;
unsigned int id;
const char *mqtt_topic_base;
const char *description;
char *mqtt_topic_set;
char *mqtt_topic_state;
// For SomfyType only
uint32_t eeprom_address;
// For SomfyGroupType only (pointer not allocated)
const int *remote_indexes;
// For Chacon Dio
unsigned long sender;
unsigned long interruptor;
};
#endif