From fa6789daaae3fdae86c6cd79f74b00179aec2790 Mon Sep 17 00:00:00 2001 From: 1technophile Date: Sun, 26 Feb 2017 08:01:35 +0100 Subject: [PATCH] adding differenciated traces between mqtt connection with auth and not --- OpenMQTTGateway.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenMQTTGateway.ino b/OpenMQTTGateway.ino index d6b3d7f..2b357e6 100644 --- a/OpenMQTTGateway.ino +++ b/OpenMQTTGateway.ino @@ -72,12 +72,13 @@ boolean reconnect() { trc(F("Attempting MQTT connection...")); //F function enable to decrease sram usage #ifdef mqtt_user if (client.connect(GatewayName, mqtt_user, mqtt_password)) { // if an mqtt user is defined we connect to the broker with authentication + trc(F("connected with authentication")); #else if (client.connect(GatewayName)) { + trc(F("connected without authentication")); #endif // Once connected, publish an announcement... client.publish(GatewayAnnouncementTopic,GatewayAnnouncementMsg); - trc(F("connected")); //Subscribing to topic if (client.subscribe(subjectMQTTtoX)) { trc(F("subscription OK to"));