mute mqtt prints

This commit is contained in:
agsler
2022-12-20 13:01:59 +01:00
parent 42978be8a9
commit f8e9e6adff

4
mqtt.c
View File

@@ -41,7 +41,7 @@ void mqtt_pub(Client* mqtt_client, char * mqtt_topic, char * mqtt_msg, int mqtt_
static uint8_t mqtt_err_cnt = 0; static uint8_t mqtt_err_cnt = 0;
int32_t mqtt_rc; int32_t mqtt_rc;
printf(">>MQTT pub msg nr%lu ", ++mqtt_pub_count); //printf(">>MQTT pub msg nr%lu ", ++mqtt_pub_count);
MQTTMessage pubMessage; MQTTMessage pubMessage;
pubMessage.qos = QOS0; pubMessage.qos = QOS0;
pubMessage.id = mes_id++; pubMessage.id = mes_id++;
@@ -52,7 +52,7 @@ void mqtt_pub(Client* mqtt_client, char * mqtt_topic, char * mqtt_msg, int mqtt_
if (mqtt_rc == SUCCESSS) if (mqtt_rc == SUCCESSS)
{ {
mqtt_err_cnt = 0; mqtt_err_cnt = 0;
printf(" - OK\r\n"); //printf(" - OK\r\n");
} }
else else
{ {