Add the ability to add mqtt sensors at runtime

This commit is contained in:
Carl Philipp Klemm 2026-04-26 13:50:06 +02:00
parent 36171a221a
commit 25b9f87285
11 changed files with 208 additions and 0 deletions

View file

@ -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;