summaryrefslogtreecommitdiff
path: root/shared-bindings/_bleio/Connection.c
AgeCommit message (Collapse)Author
2021-03-15run code formatting scriptmicroDev
2020-10-07Replace _bleio.ConnectionError with the native versionScott Shawcroft
Replace uses of _bleio.ConnectionError with regular ConnectionError Fixes #3008
2020-08-20merge from upstream; working; includes debug_out code for debugging via ↵Dan Halbert
Saleae for posterity
2020-08-07Modify some Python stubsTaku Fukada
2020-08-02wip: compilesDan Halbert
2020-07-27Fix several type hintsTaku Fukada
2020-07-24Add and correct some type hintsTaku Fukada
2020-07-03Made every init return Nonedherrada
2020-07-03Made most of the requested changesdherrada
2020-07-02Added type hints to _bleiodherrada
2020-06-25hci early wip; refactor supervisor bluetooth.c for nrf: testedDan Halbert
2020-05-12Swap sphinx to autoapi and the inline stubsScott Shawcroft
2020-05-12Merge branch 'master' into masterdherrada
2020-05-01Did audiopwmio, bitbangio, and _bleiodherrada
2020-04-29rename and improve PacketBuffer packet length propertyDan Halbert
2019-12-06Check connection validity after service discovery.Scott Shawcroft
Fixes #2347
2019-12-06Merge pull request #2356 from tannewt/central_pairingDan Halbert
Add connection interval and debugging
2019-12-05Make _bleio.Connection.disconnect() idempotentDan Halbert
2019-12-04Add connection interval and debuggingScott Shawcroft
This also sets TinyUSB to master and to not include its submodules. It also fixes an old displayio example comment and retries gattc reads.
2019-11-21Fix pairing when peripheral. Central untested.Scott Shawcroft
2019-11-20Use BluetoothError in _bleioScott Shawcroft
This better differentiates errors than using OSError everywhere.
2019-10-21Refine _bleioScott Shawcroft
This PR refines the _bleio API. It was originally motivated by the addition of a new CircuitPython service that enables reading and modifying files on the device. Moving the BLE lifecycle outside of the VM motivated a number of changes to remove heap allocations in some APIs. It also motivated unifying connection initiation to the Adapter class rather than the Central and Peripheral classes which have been removed. Adapter now handles the GAP portion of BLE including advertising, which has moved but is largely unchanged, and scanning, which has been enhanced to return an iterator of filtered results. Once a connection is created (either by us (aka Central) or a remote device (aka Peripheral)) it is represented by a new Connection class. This class knows the current connection state and can discover and instantiate remote Services along with their Characteristics and Descriptors. Relates to #586