Skip to content

Commit 4e42dd0

Browse files
committed
debugging messages improvements
1 parent e9c1c4d commit 4e42dd0

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/UniversalTelegramBot.cpp

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ String UniversalTelegramBot::sendGetToTelegram(const String& command) {
8080
if (client->connected()) {
8181

8282
#ifdef _debug
83-
Serial.println(F(".... connected to server"));
83+
Serial.println("sending: " + command);
8484
#endif
8585

8686
String a = "";
@@ -432,13 +432,8 @@ int UniversalTelegramBot::getUpdates(long offset) {
432432
#endif
433433

434434
// Parse response into Json object
435-
DynamicJsonDocument doc(maxMessageLength);
436-
DeserializationError error = deserializeJson(doc, ZERO_COPY(response));
437-
#ifdef _debug
438-
Serial.print(F("GetUpdates parsed jsonDoc: "));
439-
serializeJson(doc, Serial);
440-
Serial.println();
441-
#endif
435+
DynamicJsonDocument doc(maxMessageLength);
436+
DeserializationError error = deserializeJson(doc, ZERO_COPY(response));
442437

443438
if (!error) {
444439
#ifdef _debug

0 commit comments

Comments
 (0)