Open TheMechatronicEngineer opened 2 years ago
Did you figure it out? I'm having a similar issue with my RP2040. It looks like because we are not setting the ssl cert that telegram API won't work. I don't see a way in Wifi101 or Wifinina to set a cert or fingerprint.
I have the same issue using a Arduino Wifi, with echobot.
I have turned the debug for this library on and I can see it joining the server okay and can send, but cannot receive anything. Has something changed in one of the other libraries used?
I tried this for adding the certificate: https://support.arduino.cc/hc/en-us/articles/360016119219-How-to-add-certificates-to-Wifi-Nina-Wifi-101-Modules
You could maybe try a staticjson buffer instead of a dynamic one in the get updates method, I think esp devices have more dynamic memory than most, I'm not sure though
Hi,
After half a day of debugging and learning about json objects etc, I tracked it down to the following fails on an Uno because an int is only 2 bytes, not 4.
bool UniversalTelegramBot::processResult(JsonObject result, int messageIndex) { int update_id = result["update_id"];
Make it a long the same as "last_message_received", that it compared to and it works and is covered for more devices.
long update_id = result["update_id"];
Hope this helps on IOTs.
Anyone ever figure this out? Im having the same issue with my 33 IOT
Anyone ever figure this out? Im having the same issue with my 33 IOT
FWIW I had switched to a different Telegram client, believe it was AsyncTelegram2 and didn't have issues there.
I've tried for the first time the example echobot using an arduino nano 33 iot and the classical arduino ide. I have created a bot using botfather. I have uploaded the code of the example on the board. The serial monitor tells me that it's connected to the wifi and shows me the SSID the IP address and the signal strenght but when I try to write something using the telegram bot, nothing happens: I don't receive the echo message in the bot chat. Can anybody help me?