In this repository I'm connecting to Telegram Bots API from a ESP-32 microcontroller using MicroPython / Python as programming language.
What I wanted to do is like a proof of concept on how to do a "smart doorbell application", I don't have any server on my own so I'm gonna use Telegram API to make it.
-
-
ampy
tool.Tool for flashing python scripts to the ESP-32
-
esptool.py
tool.Tool for flashing the Python Interpreter to the ESP-32
-
-
If you wanna get this project up, you gonna have to clone it and create the file
config.py
where you gonna put all of the credentials specified inconfig.py.example
.I'm using "ampy" tool to flash the python scripts
boot.py
andconfig.py
, if you have all of the prerequisites then just run the bash scriptflash_firmware
followed byflash_mp
, here is a example on how to do it:$ ./flash_firmware $ ./flash_mp
You just need to run
flash_firmware
the first time, it is very heavy to execute that command and it's only needed when you wanna use MicroPython for the first time.
I hope you find it useful.