aboutsummaryrefslogtreecommitdiffhomepage
path: root/backends/mqtt.h
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2021-02-27 16:54:06 +0100
committercbdev <cb@cbcdn.com>2021-02-27 16:54:06 +0100
commitfca46bef7dd8448216d44f0777f0b5ef31ac5883 (patch)
tree85685bf10c285e48a411ce8c1082a84507954b57 /backends/mqtt.h
parentf483c0e50676d6a3b8eb8258daca1115550dd808 (diff)
downloadmidimonster-fca46bef7dd8448216d44f0777f0b5ef31ac5883.tar.gz
midimonster-fca46bef7dd8448216d44f0777f0b5ef31ac5883.tar.bz2
midimonster-fca46bef7dd8448216d44f0777f0b5ef31ac5883.zip
Implement input/output mapping
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*/ {