mirror of
https://github.com/espressif/esp-mqtt.git
synced 2025-08-03 12:45:34 +02:00
update to lasted idf
This commit is contained in:
@@ -15,4 +15,4 @@ EXTRA_CFLAGS := -Wno-error=implicit-function-declaration -Wno-error=format= -DHA
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
include $(IDF_PATH)/make/component.mk
|
include $(IDF_PATH)/make/component_common.mk
|
4
mqtt.c
4
mqtt.c
@@ -2,7 +2,7 @@
|
|||||||
* @Author: Tuan PM
|
* @Author: Tuan PM
|
||||||
* @Date: 2016-09-10 09:33:06
|
* @Date: 2016-09-10 09:33:06
|
||||||
* @Last Modified by: Tuan PM
|
* @Last Modified by: Tuan PM
|
||||||
* @Last Modified time: 2016-09-12 20:58:07
|
* @Last Modified time: 2016-09-12 22:27:40
|
||||||
*/
|
*/
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "freertos/FreeRTOS.h"
|
#include "freertos/FreeRTOS.h"
|
||||||
@@ -355,6 +355,8 @@ mqtt_client *mqtt_start(mqtt_settings *settings)
|
|||||||
client->connect_info.will_message = settings->lwt_msg;
|
client->connect_info.will_message = settings->lwt_msg;
|
||||||
client->connect_info.will_qos = settings->lwt_qos;
|
client->connect_info.will_qos = settings->lwt_qos;
|
||||||
client->connect_info.will_retain = settings->lwt_retain;
|
client->connect_info.will_retain = settings->lwt_retain;
|
||||||
|
|
||||||
|
|
||||||
client->keepalive_tick = settings->keepalive / 2;
|
client->keepalive_tick = settings->keepalive / 2;
|
||||||
|
|
||||||
client->connect_info.keepalive = settings->keepalive;
|
client->connect_info.keepalive = settings->keepalive;
|
||||||
|
Reference in New Issue
Block a user