From dabfe83a7d50ba4da98f357218984c588bc0245d Mon Sep 17 00:00:00 2001 From: Johny Mattsson Date: Tue, 10 Nov 2015 18:48:39 +1100 Subject: [PATCH] Unbreak build from #735 merge. Now with more #ifdef. --- app/modules/mqtt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/modules/mqtt.c b/app/modules/mqtt.c index 65caf0ac..0741cb6d 100644 --- a/app/modules/mqtt.c +++ b/app/modules/mqtt.c @@ -1037,9 +1037,11 @@ static int mqtt_socket_close( lua_State* L ) // Send disconnect message mqtt_message_t* temp_msg = mqtt_msg_disconnect(&mud->mqtt_state.mqtt_connection); NODE_DBG("Send MQTT disconnect infomation, data len: %d, d[0]=%d \r\n", temp_msg->length, temp_msg->data[0]); +#ifdef CLIENT_SSL_ENABLE if(mud->secure) espconn_secure_sent(mud->pesp_conn, temp_msg->data, temp_msg->length); else +#endif espconn_sent(mud->pesp_conn, temp_msg->data, temp_msg->length); mud->mqtt_state.auto_reconnect = 0; // stop auto reconnect.