aboutsummaryrefslogtreecommitdiffhomepage
path: root/backends/mqtt.h
diff options
context:
space:
mode:
Diffstat (limited to 'backends/mqtt.h')
-rw-r--r--backends/mqtt.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/backends/mqtt.h b/backends/mqtt.h
index d40e83d..c684f99 100644
--- a/backends/mqtt.h
+++ b/backends/mqtt.h
@@ -46,12 +46,21 @@ enum {
MSG_AUTH = 0xF0
};
-//qos, subscribe
+typedef struct /*_mqtt_value_mapping*/ {
+ double min;
+ double max;
+ double normal;
+ char* discrete;
+} mqtt_channel_value;
+
typedef struct /*_mqtt_channel*/ {
char* topic;
uint16_t topic_alias_sent;
uint16_t topic_alias_rcvd;
uint8_t flags;
+
+ size_t values;
+ mqtt_channel_value* value;
} mqtt_channel_data;
typedef struct /*_mqtt_instance_data*/ {