bleak
micropython-lib
Our great sponsors
bleak | micropython-lib | |
---|---|---|
10 | 20 | |
1,527 | 2,243 | |
- | 2.1% | |
7.6 | 8.1 | |
2 days ago | 4 days ago | |
Python | Python | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
bleak
-
bleak VS SimpleBLE - a user suggested alternative
2 projects | 3 Jul 2023
-
Sending data from Windows PC to microcontroller using BLE
I've used Bleak in Python https://github.com/hbldh/bleak to connect to BLE devices from my laptop using the built-in card. I can iterate over services/characteristics, transmit stuff, use indicates, etc.
-
Reading Data from an Arduino BLE using Raspberry Pi
On the Raspberry Pi I recommend the Python library Bleak. It has some examples, such as the sensortag.py example that shows how to read characteristics, and the enable_notifications.py example that shows how to subscribe to notifications to read data from a characteristic.
-
Automating Testing for BLE Devices
We’ve automated testing on our BLE device. Our rig is based on a Raspberry pi configured with a Gitlab-runner that runs a test suite written in Python. We use a library called Bleak: https://github.com/hbldh/bleak
-
Raspberry Pi, meet Arduino. Arduino, meet Raspberry Pi. Let’s talk Bluetooth (LE)
There are quite a few good BLE helper libraries out there that can make my job easier. But not all are created equal, some may be perfect for building peripheral BLE applications but may not be the best for central BLE applications. As I am going to make the Raspberry Pi the client, Bleak is a great one to use. Bleak is a GATT client software, capable of connecting to BLE devices acting as GATT servers. It is designed to provide a asynchronous, cross-platform Python API to connect and communicate with other BLE devices e.g. sensors.
-
Bluetooth package that works with MacOS Monterey
There is a workaround in here although they claim this is fixed in most recent update: https://github.com/hbldh/bleak/issues/720
-
ESP32 Python BLE example
If your Python script on your computer should work as the GATT client and your code on the ESP32 as the GATT server, Bleak is an easy-to-use Python library. Have a look at the code examples.
- hbldh/bleak: BLE platform-Agnostic Klient (for Python)
- Bluetooth Low Energy Platform Agnostic Klient for Python
micropython-lib
-
Reading BLE heart rate monitor from pico W with micropython
This is the current version of my code (excuse the mess it's become..), adapted from https://github.com/micropython/micropython-lib/blob/7128d423c2e7c0309ac17a1e6ba873b909b24fcc/micropython/bluetooth/aioble/examples/temp_client.py
- OSError: [Errno 12] ENOMEM
- 在 MicroPython 中使用 OpenAI API
- CUSTOM HID : Do I need to stick in C ?
-
Looking for BLE SoC
STM32WB55 running MicroPython sounds like it'd suit. Should be fine for the power budget and aioble gives you one of the best BLE libraries on any platform. Documentation is generally good, though BLE is a little light (with some good examples and an active Discord channel!).
-
Need immediate help with a library
Pico (non-W) doesn't have upip (or mip, as that replaces upip now) or urequests because it doesn't have internet access required by them. In theory, you can download urequests from: https://github.com/micropython/micropython-lib/blob/master/python-ecosys/urequests/urequests.py or build your own MP image with it enabled. I don't know if it'll work as you want it to but it's worth a try.
-
EsPiFF: An ESP32 in the Raspberry Pi form factor
Using SD-card on ESP8266 was more challenging. upip.install('sdcard') does not work.
But ChatGPT truly helped and suggested I find it in Github.
https://github.com/micropython/micropython-lib/blob/master/m...
-
using UPip with Micropython to install extra modules - is it feasible?
I don't think there's a mip list command or something like that. So your best bet is to look at the subdirectories in https://github.com/micropython/micropython-lib for a list of installable packages.
- Radio Transceiver with nrf24l01 using Rpi pico
-
Can MicroPython be used in production?
Do give it another try if you get a chance; I'd be genuinely interested in hearing about your experience. Be sure to check out the awesome list and micropython-lib if you're looking to fill gaps. There are still many holes but they're rapidly being filled in.
What are some alternatives?
gatt-python - Bluetooth GATT SDK for Python
micropython-umqtt.simple2
raspberry-pi-home-automation - Code examples, errata and additional tips and references to interesting projects for the book "Control Your Home with Raspberry Pi: Secure, Modular, Open-Source and Self-Sufficient"
buzzer_music - RPI Pico / Micropython library to play music through one or more buzzers, can automatically replace chords with fast arpeggios to simulate polyphony with a single buzzer. Music can be easily taken from onlinesequencer.net
pc-ble-driver-py - Python bindings for the ble-driver library
pycopy-lib - Standard library of the Pycopy project, minimalist and light-weight Python language implementation
blatann - Python BLE library for using Nordic nRF52 with Connectivity firmware
trezor-firmware - :lock: Trezor Firmware Monorepo
noble - A Node.js BLE (Bluetooth Low Energy) central module : Community maintained
pycopy - Pycopy - a minimalist and memory-efficient Python dialect. Good for desktop, cloud, constrained systems, microcontrollers, and just everything.
python-keyboard - A hand-wired USB & Bluetooth keyboard powered by Python and more
picoweb - Really minimal web application framework for the Pycopy project (minimalist Python dialect) and its "uasyncio" async framework