From 0517fc9d625f94cf41a6090b473af0c78fb1a76a Mon Sep 17 00:00:00 2001 From: Ernesto Lorenz Date: Thu, 14 Mar 2024 12:43:02 +0100 Subject: [PATCH 1/2] Cloak Serial.printing in setup() to print only when debug = true. --- src/UbidotsEsp32Mqtt.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/UbidotsEsp32Mqtt.cpp b/src/UbidotsEsp32Mqtt.cpp index 617332a..7853bce 100644 --- a/src/UbidotsEsp32Mqtt.cpp +++ b/src/UbidotsEsp32Mqtt.cpp @@ -70,12 +70,14 @@ void Ubidots::_builder(const char* token, const char* clientName, const char* br } void Ubidots::setup() { - Serial.print("broker:"); - Serial.println(_broker); - Serial.print("brokerPort:"); - Serial.println(_brokerPort); - Serial.println(_clientName); - Serial.println(_token); + if (_debug) { + Serial.print("broker:"); + Serial.println(_broker); + Serial.print("brokerPort:"); + Serial.println(_brokerPort); + Serial.println(_clientName); + Serial.println(_token); + } _clientMqttUbi.setServer(_broker, _brokerPort); } From 2851b2cfe273b38489aae3d9dad611e0fb8bb91a Mon Sep 17 00:00:00 2001 From: Ernesto Lorenz Date: Fri, 15 Mar 2024 12:04:08 +0100 Subject: [PATCH 2/2] Update the version number --- library.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library.properties b/library.properties index eaf1430..b72714c 100644 --- a/library.properties +++ b/library.properties @@ -1,6 +1,6 @@ name=Ubidots MQTT for ESP32 -version=1.0 +version=1.0.1 author=Jose García maintainer=Jose García sentence=Library for sending data to the Ubidots cloud using ESP32 based systems