unix: Add support for modbluetooth and BLE using btstack.

This commit adds full support to the unix port for Bluetooth using the
common extmod/modbluetooth Python bindings.  This uses the libusb HCI
transport, which supports many common USB BT adaptors.
This commit is contained in:
Jim Mussared
2020-04-07 15:02:52 +10:00
committed by Damien George
parent c987adb9e9
commit 7563d58210
8 changed files with 225 additions and 4 deletions

View File

@@ -48,6 +48,8 @@ Configuration
- ``'mac'``: Returns the device MAC address. If a device has a fixed address
(e.g. PYBD) then it will be returned. Otherwise (e.g. ESP32) a random
address will be generated when the BLE interface is made active.
Note: on some ports, accessing this value requires that the interface is
active (so that the MAC address can be queried from the controller).
- ``'rxbuf'``: Get/set the size in bytes of the internal buffer used to store
incoming events. This buffer is global to the entire BLE driver and so