ESP32 BLE MicroPython Library

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
bilalmalikuet
Posts: 2
Joined: Wed Jul 13, 2022 7:40 am
Contact:

ESP32 BLE MicroPython Library

Post by bilalmalikuet » Wed Jul 13, 2022 7:56 am

Is ESP32 BLE support available in MicroPython?

Lobo-T
Posts: 36
Joined: Tue Nov 16, 2021 2:36 pm

Re: ESP32 BLE MicroPython Library

Post by Lobo-T » Wed Jul 13, 2022 11:13 am

Yes.


BruceB
Posts: 1
Joined: Fri Jul 22, 2022 3:14 am

Re: ESP32 BLE MicroPython Library

Post by BruceB » Fri Jul 22, 2022 3:43 am

I have a Pi Zero successfully reading Ble advertisements from a couple of Mijia temperature/humidity sensors as well as a Qingping motion/light sensor. In both cases, it’s purely passive, no connection established with the sensors. The Mijia sensors have ATC firmware installed. I’m using a hacked about version of this software with the passive option selected:

https://github.com/JsBergbau/MiTemperature2

I’d like to do the same using the ESP32 and micropython. But aioble isn’t doing what I want. I can find a sensor by name and see the data but adv_data is much shorter than what I see with the pi zero and cuts off before the fields with temperature and other data.

I’d like to continue with passive reception of advertisements rather than creating connections to the sensors. But I’m reliant on these brilliant people on GitHub to compensate for my very limited skills.

Post Reply