From 4d895983381935416e3f11ad71134442f34cba44 Mon Sep 17 00:00:00 2001 From: Alwin Arrasyid Date: Sat, 25 Feb 2017 16:35:02 +0700 Subject: [PATCH] Fix typo in header file and remove deprecation message in component.mk file --- component.mk | 4 ---- include/mqtt.h | 8 ++++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/component.mk b/component.mk index 7fd9a65..b045d65 100644 --- a/component.mk +++ b/component.mk @@ -12,7 +12,3 @@ COMPONENT_ADD_INCLUDEDIRS := include COMPONENT_SRCDIRS := . #EXTRA_CFLAGS := -DICACHE_RODATA_ATTR CFLAGS += -Wno-error=implicit-function-declaration -Wno-error=format= -DHAVE_CONFIG_H - - - -include $(IDF_PATH)/make/component_common.mk diff --git a/include/mqtt.h b/include/mqtt.h index b1d6214..88742d0 100755 --- a/include/mqtt.h +++ b/include/mqtt.h @@ -10,13 +10,13 @@ #if defined(CONFIG_MQTT_SECURITY_ON) // ENABLE MQTT OVER SSL #include "openssl/ssl.h" - #define ClientRead(buf,num) SSL_read(client->ssl, buf, num) + #define ClientRead(buf,num) SSL_read(client->ssl, buf, num) #define ClientWrite(buf,num) SSL_write(client->ssl, buf, num) #else - #define ClientRead(buf,num) read(client->socket, buf, num) - #define ClientWrite(buf,num) write(client->socket, buf, num) + #define ClientRead(buf,num) read(client->socket, buf, num) + #define ClientWrite(buf,num) write(client->socket, buf, num) #endif @@ -94,5 +94,5 @@ void mqtt_stop(); void mqtt_task(void *pvParameters); void mqtt_subscribe(mqtt_client *client, char *topic, uint8_t qos); void mqtt_publish(mqtt_client* client, char *topic, char *data, int len, int qos, int retain); -void mqtt_detroy(); +void mqtt_destroy(); #endif