aboutsummaryrefslogtreecommitdiffhomepage
path: root/backends/mqtt.h
diff options
context:
space:
mode:
Diffstat (limited to 'backends/mqtt.h')
-rw-r--r--backends/mqtt.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/backends/mqtt.h b/backends/mqtt.h
index 165f2ba..1c8b47d 100644
--- a/backends/mqtt.h
+++ b/backends/mqtt.h
@@ -12,6 +12,8 @@ static int mqtt_shutdown(size_t n, instance** inst);
#define MQTT_PORT "1883"
#define MQTT_TLS_PORT "8883"
+#define MQTT_BUFFER_LENGTH 8192
+#define MQTT_KEEPALIVE 10
enum {
MSG_RESERVED = 0x00,
@@ -39,9 +41,12 @@ typedef struct /*_mqtt_instance_data*/ {
char* user;
char* password;
+ char* client_id;
size_t nchannels;
char** channel;
+
+ int fd;
} mqtt_instance_data;
//per-channel