diff options
author | cbdev <cb@cbcdn.com> | 2020-12-18 22:31:14 +0100 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2020-12-18 22:31:14 +0100 |
commit | e248f0c5778f73988477ba73174c91b7085c232c (patch) | |
tree | 8d14e78760f19d3a811bd864b6400da2213b4bac /backends/mqtt.h | |
parent | 378c38aee6dae85c75be924e04f0ba5f90145518 (diff) | |
download | midimonster-e248f0c5778f73988477ba73174c91b7085c232c.tar.gz midimonster-e248f0c5778f73988477ba73174c91b7085c232c.tar.bz2 midimonster-e248f0c5778f73988477ba73174c91b7085c232c.zip |
Implement MQTT connect
Diffstat (limited to 'backends/mqtt.h')
-rw-r--r-- | backends/mqtt.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backends/mqtt.h b/backends/mqtt.h index 1c8b47d..df63319 100644 --- a/backends/mqtt.h +++ b/backends/mqtt.h @@ -14,6 +14,7 @@ static int mqtt_shutdown(size_t n, instance** inst); #define MQTT_TLS_PORT "8883" #define MQTT_BUFFER_LENGTH 8192 #define MQTT_KEEPALIVE 10 +#define MQTT_VERSION 0x05 enum { MSG_RESERVED = 0x00, @@ -47,6 +48,8 @@ typedef struct /*_mqtt_instance_data*/ { char** channel; int fd; + uint8_t receive_buffer[MQTT_BUFFER_LENGTH]; + size_t receive_offset; } mqtt_instance_data; //per-channel |