Add the ability to add mqtt sensors at runtime
This commit is contained in:
parent
36171a221a
commit
25b9f87285
11 changed files with 208 additions and 0 deletions
|
|
@ -33,6 +33,12 @@ public:
|
|||
TYPE_DUMMY,
|
||||
} sensor_type_t;
|
||||
|
||||
typedef enum {
|
||||
BACKEND_MICROCONTROLLER = 0,
|
||||
BACKEND_MQTT,
|
||||
BACKEND_SUN,
|
||||
} sensor_backend_type_t;
|
||||
|
||||
sensor_type_t type;
|
||||
uint64_t id;
|
||||
float field;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue