Comments on: Telegram: Control ESP32/ESP8266 Outputs (Arduino IDE) https://randomnerdtutorials.com/telegram-control-esp32-esp8266-nodemcu-outputs/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Mon, 28 Apr 2025 22:27:12 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Adam C https://randomnerdtutorials.com/telegram-control-esp32-esp8266-nodemcu-outputs/#comment-1031979 Mon, 28 Apr 2025 22:27:12 +0000 https://randomnerdtutorials.com/?p=97812#comment-1031979 In reply to Daniel Huber.

Excellent tutorial. And similar to Daniel I’ve been trying to have Telegram token saved / restored from EEPROM, but couldn’t find a solution anywhere. Looks like everyone was copying Universal Telegram Bot library example and got token hardcoded (#define BOT_TOKEN) in variables declaration section. So I’ve looked in the library and found this function: bot.updateToken(). It can be used to update the token in setup (I’ve tried it and it works) or likely even loop!

]]>
By: George https://randomnerdtutorials.com/telegram-control-esp32-esp8266-nodemcu-outputs/#comment-992068 Mon, 16 Dec 2024 16:48:10 +0000 https://randomnerdtutorials.com/?p=97812#comment-992068 In reply to Sara Santos.

Hi again,
while comparing both installations I found the culprit, it was the SSL setting in the Tools menu. Which of course makes sense, but I had completely forgotten about!
The incompatible setting is:
– SSL Support: “Basic SSL ciphers (lower ROM use)”
The Telegram compatible setting is:
– SSL Support: “All SSL ciphers (most compatible)”
I hope this helps others.

Regards
George

]]>
By: George https://randomnerdtutorials.com/telegram-control-esp32-esp8266-nodemcu-outputs/#comment-991690 Sun, 15 Dec 2024 11:09:09 +0000 https://randomnerdtutorials.com/?p=97812#comment-991690 In reply to Sara Santos.

Hi Sara,
both of them use version 3.1.2, all files are identical.
kind regards
George

]]>
By: Sara Santos https://randomnerdtutorials.com/telegram-control-esp32-esp8266-nodemcu-outputs/#comment-991686 Sun, 15 Dec 2024 10:46:48 +0000 https://randomnerdtutorials.com/?p=97812#comment-991686 In reply to George.

Hi.
Did you check which ESP8266 boards version was used in each IDE?
Regards,
Sara

]]>
By: George https://randomnerdtutorials.com/telegram-control-esp32-esp8266-nodemcu-outputs/#comment-991526 Sat, 14 Dec 2024 22:39:47 +0000 https://randomnerdtutorials.com/?p=97812#comment-991526 I spend a day troubleshooting this and it seems the problem was the IDE!!
I normaly use 2.3.2 and 2.3.4 and all the boards I tried (various ESP8266 from 01s to 12F) failed to connect to Telegram.
I tried every possible version combination of UniversalTelegramBot and ArduinoJson to no avail.
Then I decided to start being irrational so I tried my old 1.8.19 installation with the latest libraries (ArduinoJson 7.2.1, UniversalTelegramBot 1.3.0, esp8266 3.1.2) and it worked immediately!
Same board, same sketch, same exact libraries (all files binary compared).
I do not understand it, given the same input the 2 compilers should produce identical or nearly identical firmware but they obviously don’t.

]]>
By: Dave Ziegl https://randomnerdtutorials.com/telegram-control-esp32-esp8266-nodemcu-outputs/#comment-974375 Mon, 21 Oct 2024 01:22:53 +0000 https://randomnerdtutorials.com/?p=97812#comment-974375 In reply to Heikki Hietala.

This is a very old post, and I doubt if you will see this, but, the problem is you are calling the reboot function, before the bot has a chance to realize that it’s already executed the message, so, when it restarts, the message is still there. The easiest way around this is rather than running the reboot function, just set a variable to true, and in your loop when that variable is true then run the reboot function. That won’t give the message a time to clear from the queue, it will reboot, and then not loop.

]]>
By: Sara Santos https://randomnerdtutorials.com/telegram-control-esp32-esp8266-nodemcu-outputs/#comment-956532 Thu, 12 Sep 2024 19:59:12 +0000 https://randomnerdtutorials.com/?p=97812#comment-956532 In reply to Lele.

Hi.
It was approved today.
Regards,
Sara

]]>
By: Lele https://randomnerdtutorials.com/telegram-control-esp32-esp8266-nodemcu-outputs/#comment-956384 Thu, 12 Sep 2024 06:58:12 +0000 https://randomnerdtutorials.com/?p=97812#comment-956384 Where is my comment of yesterday?

]]>
By: Lele https://randomnerdtutorials.com/telegram-control-esp32-esp8266-nodemcu-outputs/#comment-956137 Wed, 11 Sep 2024 13:46:22 +0000 https://randomnerdtutorials.com/?p=97812#comment-956137 I “built” a small circuit that drives a transistor. Those who are familiar with electronics will surely know the banality of the project. I relied on this sketch with an esp8266 to send a reset command to my homelab server in case of an unresolvable crash via VPN. Result: I left for vacation on September 2nd. On September 3rd, the day after, I can no longer access the server… and I say…”thank goodness I built the esp8266 to reset it”. I send the telegram message to the esp8266. No response. (Very good. Always better!) I send my brother home who informs me that the server, with a sequence of LEDs, signals a motherboard failure. I make some assumptions and try to disconnect the reset cable connected to the esp8266. VoilĂ ! The esp8266 has not responded via telegram since then, but takes care to keep the relay closed for no reason. I reserve the right to comment again after diagnosis when I return from vacation, but given the banality of the circuit I struggle to accuse a hardware problem. On the contrary, a super bug in the library seems very likely.

]]>
By: chandrasekhar https://randomnerdtutorials.com/telegram-control-esp32-esp8266-nodemcu-outputs/#comment-953083 Sun, 01 Sep 2024 13:51:16 +0000 https://randomnerdtutorials.com/?p=97812#comment-953083 In reply to Brin.

Could you pls tell what version of all software you are using. Such as Arudino Version, telegrambot version and ArudinoJson Version.. I have similar problems that the ESP32 run smoothly for 2-3 minutes and receive any message. But after then the system halts. If reset the ESP then the system works again.. What Might the problem
Here i am using ESP32 DEVKITV1
Arduino IDE 2.3.2
UniversalTelegramBot 1.3.0
ArudinoJson 6.15.2

]]>