witnessmenow / Universal-Arduino-Telegram-Bot

Use Telegram on your Arduino (ESP8266 or Wifi-101 boards)
MIT License
1.09k stars 302 forks source link

Connection error after esp32 and ArduinoJson upgrade #231

Open array81 opened 3 years ago

array81 commented 3 years ago

After upgrade esp32 to 1.0.5 and ArduinoJson to 6.17.3 I get this error when try to use the library: [BOT Client]Connecting to server [BOT Client]Conection error

Lau-res commented 3 years ago

Didi you solve it? I have a similar libraries incompatibility issue and the connection between esp32 and telegram bot doesn't work. What versions work for you? Thanks a lot

witnessmenow commented 3 years ago

What code are you using?

Esp32 now forces a https check unless you tell it not too, I believe all the recent examples of this library use the cert.

Lau-res commented 3 years ago

How do you tell it not to do de https check? I'm trying with EchoBot example from Universal Telegram Bot and the connection doesn't work.

witnessmenow commented 3 years ago

https://github.com/witnessmenow/Universal-Arduino-Telegram-Bot/blob/master/examples/ESP32/EchoBot/EchoBot.ino#L55 Should cover it.

But you could replace this this with: secured_client.setInsecure(); to try ignoring the HTTPS check altogether

Lau-res commented 3 years ago

I continue with this error [BOT Client]Connecting to server [BOT Client]Conection error. What versions of Arduino IDE, UniversalTelegramBot, ArduinoJson and esp32 did you use? Thanks a lot!

paulmarcelflo commented 2 years ago

I have the same error :

GET Update Messages [BOT]Connecting to server [BOT]Conection error Received empty string in response!

Arduino IDE 1.8.16 Esp32 1.0.6 ArduinoJson 6.18.5

Has anybody solved this issue ?