From d47c69559faa681a3c4e06508ebe6a0c76e6b6b5 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Wed, 4 May 2022 16:56:19 +0200 Subject: [PATCH] Allow more telegram messages in queue --- tasmota/xdrv_40_telegram.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasmota/xdrv_40_telegram.ino b/tasmota/xdrv_40_telegram.ino index aebb2579a..a988fff8f 100644 --- a/tasmota/xdrv_40_telegram.ino +++ b/tasmota/xdrv_40_telegram.ino @@ -83,7 +83,7 @@ bool TelegramInit(void) { if (!telegramClient) { telegramClient = new BearSSL::WiFiClientSecure_light(tls_rx_size, tls_tx_size); - if (Settings->flag5.tls_use_fingerprint) { + if (Settings->flag5.tls_use_fingerprint) { // SetOption132 - (TLS) Use fingerprint validation instead of CA based telegramClient->setPubKeyFingerprint(Telegram_Fingerprint, Telegram_Fingerprint, false); // check server fingerprint } else { telegramClient->setTrustAnchor(&GoDaddyCAG2_TA, 1); @@ -144,7 +144,7 @@ String TelegramConnectToTelegram(const String &command) { } if (available) { response += c; - if (response.length() > 800) { // Allow up to two messages + if (response.length() > 2000) { // Allow up to 5 messages break; } }