Allow more telegram messages in queue

This commit is contained in:
Theo Arends 2022-05-04 16:56:19 +02:00
parent 2401c6c1f3
commit d47c69559f

View File

@ -83,7 +83,7 @@ bool TelegramInit(void) {
if (!telegramClient) { if (!telegramClient) {
telegramClient = new BearSSL::WiFiClientSecure_light(tls_rx_size, tls_tx_size); 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 telegramClient->setPubKeyFingerprint(Telegram_Fingerprint, Telegram_Fingerprint, false); // check server fingerprint
} else { } else {
telegramClient->setTrustAnchor(&GoDaddyCAG2_TA, 1); telegramClient->setTrustAnchor(&GoDaddyCAG2_TA, 1);
@ -144,7 +144,7 @@ String TelegramConnectToTelegram(const String &command) {
} }
if (available) { if (available) {
response += c; response += c;
if (response.length() > 800) { // Allow up to two messages if (response.length() > 2000) { // Allow up to 5 messages
break; break;
} }
} }