Example of a BLE server in MicroPython. I have used the ESP32 microcontroller.
- Download MicroPython firmware for your board from https://micropython.org/download.
- (Optional, easy way) Install Thonny IDE https://thonny.org/.
- Connect the ESP32 to your computer.
- Install the downloaded firmware in the ESP32. If you have installed Thonny follow this tutorial https://randomnerdtutorials.com/getting-started-thonny-micropython-python-ide-esp32-esp8266/. If you have not, follow this one https://pythonforundergradengineers.com/how-to-install-micropython-on-an-esp32.html.
- Once the firmware is installed you can now upload python code to the ESP32.