From b5bf869dfb976503ec146d79b588eeff61f13e50 Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Tue, 20 Apr 2021 23:55:07 +0800 Subject: [PATCH] Add mqtt folder in iotd --- iotd/conf/conf.h | 25 +------------------------ 1 files changed, 1 insertions(+), 24 deletions(-) diff --git a/iotd/conf/conf.h b/iotd/conf/conf.h index b905f39..68f0c50 100644 --- a/iotd/conf/conf.h +++ b/iotd/conf/conf.h @@ -14,6 +14,7 @@ #define __CONF_H_ #include "hal/hal.h" +#include "mqtt/mqtt.h" enum { @@ -30,30 +31,6 @@ int loglevel; /* logger level */ int logsize; /* logger file maxsize, oversize will rollback */ } log_ctx_t; - -typedef struct mqtt_ctx_s -{ - char id[32]; /* production ID */ - - /* Broker settings */ - char host[128]; /* MQTT broker server name */ - int port; /* MQTT broker listen port */ - char uid[64]; /* username */ - char pwd[64]; /* password */ - int keepalive; /* MQTT broker send PING message to subsciber/publisher keepalive timeout<seconds> */ - - /* Subscriber settings */ - int sub_enable; /* Subscriber enable or not */ - char subTopic[256]; /* Subscriber topic */ - int subQos; /* Subscriber Qos */ - - /* Publisher settings */ - int pub_enable; /* Publisher enable or not */ - char pubTopic[256]; /* Publisher topic */ - int pubQos; /* Publisher Qos */ - int interval; /* Publish interval */ -} mqtt_ctx_t; - typedef struct iotd_ctx_s { -- Gitblit v1.9.1