The btferret Bluetooth library, that was previously only for C, will now work with Python as well.
https://github.com/petzval/btferret
It comes with a general purpose program btferret.py that is a bit like bluetoothctl, and will act as an LE client, LE server, Classic client, or Classic server. It can also scan for devices, transfer data or files, display Bluetooth traffic, and has a simple mesh network for multiple Pis. Beyond this, you can write your own code using the library functions. There is extensive documentation that ranges from beginner to advanced topics, with lots of code examples. Advanced topics include Human Interface Device coding with a ready-to-run program (keyboard.py) that turns a Pi into a Bluetooth keyboard for a phone/tablet.
https://github.com/petzval/btferret
It comes with a general purpose program btferret.py that is a bit like bluetoothctl, and will act as an LE client, LE server, Classic client, or Classic server. It can also scan for devices, transfer data or files, display Bluetooth traffic, and has a simple mesh network for multiple Pis. Beyond this, you can write your own code using the library functions. There is extensive documentation that ranges from beginner to advanced topics, with lots of code examples. Advanced topics include Human Interface Device coding with a ready-to-run program (keyboard.py) that turns a Pi into a Bluetooth keyboard for a phone/tablet.
Statistics: Posted by petzval — Tue Mar 19, 2024 3:41 pm