Commit graph

8 commits

Author SHA1 Message Date
dherrada
ffd1f1d9f0 Ran black, updated to pylint 2.x 2020-03-16 15:39:06 -04:00
Dan Halbert
dfea28146b Provide a default HID descriptor, and move desccriptor out of ble_hid_periph.py example 2020-01-16 21:15:08 -05:00
Dan Halbert
2856d2b263 Disconnect when restarting HID example 2020-01-14 17:40:59 -05:00
Scott Shawcroft
03431500fd
Remove to_hex import that was used in debugging 2019-12-18 13:30:47 -08:00
Scott Shawcroft
625cbef217
Remove debug prints from example 2019-12-18 13:24:01 -08:00
Scott Shawcroft
036b65f646
Add support for pairing and services that require it.
This adds HID Server, Current Time Service and Apple Notification
Service Client support.
2019-11-22 11:10:16 -08:00
Scott Shawcroft
3434bfa5d3
Tweaks based on feedback from Dan and Thea
This renames Smart* to BLE* and removes the smart recognition. It
is replaced by knowing the type of what we're interested at use
time only. Only printing Service lists is now dumber.

Interal variables to _bleio classes are now public as bleio_*
instead so that other classes in the library can access them and
its clearer what they are.
2019-11-01 11:48:34 -07:00
Scott Shawcroft
8291ee9b1b
Rework the API to use descriptors.
This makes Advertisement and Service definitions declarative by
factoring out parsing logic out into shareable descriptor classes
similar to how the Register library works.

This also introduces SmartAdapter and SmartConnection which will
auto-create the correct Advertisements and Services without requiring
any direct use of UUIDs. Instead, classes are used to identify
relevant objects to "recognize".

This requires https://github.com/adafruit/circuitpython/pull/2236 and
relates to https://github.com/adafruit/circuitpython/issues/586.
2019-10-22 17:30:12 -07:00