Questions tagged [python-bleak]
Bleak is a platform-agnostic Bluetooth Low Energy library for Python
python-bleak
13
questions
1
vote
0
answers
26
views
Set Target Inclination of Hometrainer with BLE
I'm currently trying to include the incline angle over BLE with the Fitness Machine Control Point characteristic with Python Bleak. I'm pretty sure that the correct characteristic is "00002ad9-...
0
votes
0
answers
46
views
Pair Bluetooth devices using Bleak
How can I pair a bluetooth device using bleak
I have developed a code for scanning of bluetooth devices nearby how can I pair devices.
This is a code written to scan bluetooth devices
from bleak ...
0
votes
0
answers
37
views
Using Bleak with threading in a PyQt/PySide application
I have a PyQt/PySide application where I use threads to process commands from a queue. In one thread, I need to use Bleak to work with BLE devices. Bleak is based on asyncio, and I am having trouble ...
0
votes
0
answers
53
views
Termux : Asyncio error "asyncio.get_running_loop()" and "FileNotFoundError"
Hi and thank you in advance for your help,
I am currently trying to connect a tablet with Termux to a BLE Arduino. The code managed to connect my computer to the Arduino, but it doesn't work on my ...
0
votes
0
answers
32
views
How to connect to a Bluetooth BTLE device on Raspberry Pi?
I try to connect to a BTLE device from a Raspberry Pi, but it fails consistently. Can you help me improve this?
The device is about 3-4 meters away in plain sight from the Raspberry Pi Model B Rev 1.2....
0
votes
0
answers
45
views
Bluetooth BTLE: how to connect reliably to device
Problem: Connecting to a BTLE device succeeds about 1 out of 10 times. How can I improve this and reliably connect to the device?
I have a Sensirion SHT41x that I want to access via Bluetooth from my ...
0
votes
0
answers
45
views
Python Bleak Notifications With a BLE Rubik's Cube
I am using python 3.12 with bleak to try and communicate with a BLE rubik's cube. Currently all I can do is pull the model id with this code:
import asyncio
from bleak import BleakClient
address = &...
2
votes
0
answers
98
views
How to get device Bluetooth addresses in Python Bleak
I’m new to Bluetooth in Python so I’m not sure how to best phrase my question. The task I need to achieve, is I want to know whether a certain phone is in my vicinity through Bluetooth. I read Bleak’s ...
0
votes
0
answers
36
views
Converting Python byteArray to List of Integers for Writing to Bluetooth Characteristic in Flutter?
I'm using Python with the Bleak library to write a bytearray to a Bluetooth device characteristic. The bytearray I'm sending is
bytearray(b'3\x01\x00-\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\...
0
votes
0
answers
31
views
Trying to receive data sent by Xiao ESP32S3 & MPU6050 using Bleak library
This is the code that sends the data. Written in Arduino IDE
`#include "LSM6DS3.h"
#include "Wire.h"
#include <ArduinoBLE.h> // Include the Bluetooth library
#include <...
0
votes
0
answers
20
views
Sensortile.boxpro Bluetooth
I'm using a STEVAL-MKBOXPRO connected to an RPi3B+ to receive data via Bluetooth.
The BLESensors code is integrated into Sensortile.
I've tried two approaches and for now I'm stuck:
Using the ...
0
votes
0
answers
199
views
Python with Bleak - Pair with a device that requires a pin
I'm attempting to read some characteristics from a Bluetooth device. The device requires a Pin to pair but I can't find any resources on how to enter a pin with python-bleak.
My code is below. It will ...
0
votes
1
answer
279
views
BleakClient suggests "async with", but how can I get a handle that lasts beyond my code block?
I wrote a Python script using the bleak Bluetooth Low Energy client that works from a command line. I want to split the script into REST endpoints.
To that end, I want to replace async with ...