From a03a75f365bd31e2f4f4326c8fc02df929125571 Mon Sep 17 00:00:00 2001 From: Simon Frei Date: Fri, 23 Dec 2022 02:28:15 +0100 Subject: [PATCH] publish wiht qos = 2 --- ADIS_ESP32_Eclipse/main/myMqtt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ADIS_ESP32_Eclipse/main/myMqtt.c b/ADIS_ESP32_Eclipse/main/myMqtt.c index 840ddf9..b9613db 100644 --- a/ADIS_ESP32_Eclipse/main/myMqtt.c +++ b/ADIS_ESP32_Eclipse/main/myMqtt.c @@ -55,7 +55,7 @@ void MyMqtt_Deinit(void){ } void MyMqtt_Publish(const char *topic, const char *data){ - int msg_id = esp_mqtt_client_publish(client, topic, data, 0, 1, 0); + int msg_id = esp_mqtt_client_publish(client, topic, data, 0, 2, 0); ESP_LOGI(TAG, "sent publish successful, msg_id=%d", msg_id); }