Resolve conenct issues with ip

This commit is contained in:
Tuan PM committed 2016-09-12 13:06:48 +07:00
1 parent eb1595f1e8
commit 526109fd37
3 files changed
+67 -39

No files matched your search

+7 -8
View File
@@ -1,23 +1,22 @@
#ifndef _MQTT_CONFIG_H_
#define _MQTT_CONFIG_H_
#include "sdkconfig.h"
#include <stdio.h>
#ifdef CONFIG_MQTT_LOG_ERROR_ON
#define mqtt_error( format, ... ) printf( "[MQTT ERROR] "format, ## __VA_ARGS__ )
#define mqtt_error(format, ... ) printf( "[MQTT ERROR] " format "\n", ##__VA_ARGS__)
#else
#define mqtt_error( format, ... )
#define mqtt_error( format, ... )
#endif
#ifdef CONFIG_MQTT_LOG_WARN_ON
#define mqtt_warn( format, ... ) printf( "[MQTT WARN] "format, ## __VA_ARGS__ )
#define mqtt_warn(format, ... ) printf( "[MQTT WARN] " format "\n", ##__VA_ARGS__)
#else
#define mqtt_warn( format, ... )
#define mqtt_warn( format, ... )
#endif
#ifdef CONFIG_MQTT_LOG_INFO_ON
#define mqtt_info( format, ... ) printf( "[MQTT INFO] "format, ## __VA_ARGS__ )
#define mqtt_info(format, ... ) printf( "[MQTT INFO] " format "\n", ##__VA_ARGS__)
#else
#define mqtt_info( format, ... )
#define mqtt_info(format, ... )
#endif
#ifndef CONFIG_MQTT_QUEUE_BUFFER_SIZE_WORD