Just share Some Info
if you turn OFF the Arduino ESP
press some buttons in the Home Bot
then Browse to
https//api.telegram.org/botxxxxxmybottokenxxxxx/getUpdates
replace the xxxxxmybottokenxxxx for your bot token
https//api.telegram.org/bot +yourbottoken+ /getUpdates
then you see a list of pending messages
if you turn ON the Arduino ESP messages will be processed
and browser
https//api.telegram.org/bot +yourbottoken+ /getUpdates
will be empty
if you turn OFF the Arduino ESP
press some buttons in the Home Bot
then Browse to
https//api.telegram.org/botxxxxxmybottokenxxxxx/getUpdates
replace the xxxxxmybottokenxxxx for your bot token
https//api.telegram.org/bot +yourbottoken+ /getUpdates
then you see a list of pending messages
if you turn ON the Arduino ESP messages will be processed
and browser
https//api.telegram.org/bot +yourbottoken+ /getUpdates
will be empty
// GPIO where the Wemos D1 Mini DS18B20 temperature sensor shield is connected
// const int oneWireBus = 4; // d1 mini ESP8266 D2=gpio4
// const int oneWireBus = 33; // lolin mini ESP32S2
// const int oneWireBus = 35; // 35 not tested waiting for boards lolin mini ESP32S3
const int oneWireBus = 21; // wemos d1 mini esp32
// const int oneWireBus = 4; // d1 mini ESP8266 D2=gpio4
// const int oneWireBus = 33; // lolin mini ESP32S2
// const int oneWireBus = 35; // 35 not tested waiting for boards lolin mini ESP32S3
const int oneWireBus = 21; // wemos d1 mini esp32
might be a failure in my code
if your bot is not responding anymore
telegram pending messages are not cleared
browse to
https//api.telegram.org/botxxxxxmybottokenxxxxx/getUpdates&offset=updateid+1
replace the xxxxxmybottokenxxxx for your bot token
https//api.telegram.org/bot +yourbottoken+ /getUpdates&offset=updateid+1
getupdateid is listed in answer browser window add 1
{"ok":true,"result":[{"update_id":58837690,
if your bot is not responding anymore
telegram pending messages are not cleared
browse to
https//api.telegram.org/botxxxxxmybottokenxxxxx/getUpdates&offset=updateid+1
replace the xxxxxmybottokenxxxx for your bot token
https//api.telegram.org/bot +yourbottoken+ /getUpdates&offset=updateid+1
getupdateid is listed in answer browser window add 1
{"ok":true,"result":[{"update_id":58837690,
ESP32 ESP32S2 ESP32S3 ?
smaller message keyboard
smaller message keyboard
ESP32_telegram.ino
74.4 KB
Changed Again
Any ESP32?
Can run it bare board?!
Any ESP32?
Can run it bare board?!
firtst try
ESP32 S3 powerup connect USB with button 0 pressed
to get into boot/flash mode
RST after programming
ESP32 S3 purple wemos mini
looks like onboard LED is ws2812 rgb pixel dataline 47
https://www.wemos.cc/en/latest/s3/s3_mini.html
ESP32 S3 powerup connect USB with button 0 pressed
to get into boot/flash mode
RST after programming
ESP32 S3 purple wemos mini
looks like onboard LED is ws2812 rgb pixel dataline 47
https://www.wemos.cc/en/latest/s3/s3_mini.html
ESP32_ESP32S2_ESP32S3_Telegram.ino
76.7 KB
Changed Again
added FastLed library
for onboard WS2812 LED on ESP32S3
added FastLed library
for onboard WS2812 LED on ESP32S3
Think the wemos mini DS18B20 temperatur sensor shield
does not work on ESP32S3
Data pin will be on pin 35
wich is a input only pin
DS18B20 needs in/output
if i bring the DS18B20 Wemos mini shield data pin D2 to ESP32S2 GPIO21
Temperature works
does not work on ESP32S3
Data pin will be on pin 35
wich is a input only pin
DS18B20 needs in/output
if i bring the DS18B20 Wemos mini shield data pin D2 to ESP32S2 GPIO21
Temperature works
#include <OneWire.h>
#include <DallasTemperature.h>
// GPIO where the DS18B20 is connected
const int oneWireBus = 21;
// Setup a oneWire instance to communicate with any OneWire devices
OneWire oneWire(oneWireBus);
// Pass oneWire reference to DallasTemperature library
DallasTemperature sensors(&oneWire);
void setup() {
Serial.begin(115200);
sensors.begin(); // Initialize the DallasTemperature library
}
void loop() {
sensors.requestTemperatures(); // Send the command to get temperatures
float temperatureC = sensors.getTempCByIndex(0); // Read temperature as Celsius
Serial.print("Temperature: ");
Serial.print(temperatureC);
Serial.println("°C");
delay(2000); // Wait for 2 seconds between measurements
}
Screenshot from 2024-06-15 09-36-05.png
126.5 KB
ESP32 test
for wifi Access point config
with bot token and chatid fields
for wifi Access point config
with bot token and chatid fields
Wifi_config_test_with_bottoken_chatid.ino
4.5 KB
ESP32
test no hardcode
AP Access Point configure wifi & bottoken chatid
when connected wifi station sends message to bot
test no hardcode
AP Access Point configure wifi & bottoken chatid
when connected wifi station sends message to bot
added UpTime
with millis() +/- 49 days rollover count
with millis() +/- 49 days rollover count
ESP32_ESP32S2_ESP32S3_Telegram.ino
78.4 KB
Changed / Updated 16 June 2024 07:23