diff options
author | cbdev <cb@cbcdn.com> | 2021-02-27 16:54:06 +0100 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2021-02-27 16:54:06 +0100 |
commit | fca46bef7dd8448216d44f0777f0b5ef31ac5883 (patch) | |
tree | 85685bf10c285e48a411ce8c1082a84507954b57 /backends/mqtt.h | |
parent | f483c0e50676d6a3b8eb8258daca1115550dd808 (diff) | |
download | midimonster-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.h | 11 |
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*/ { |