Commit graph

7 commits

Author SHA1 Message Date
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
Dan Halbert
cd2b7ddbf8 Add and update examples 2019-07-11 19:43:36 -04:00
Dan Halbert
82c00ac209 Improve UARTServer example 2019-02-01 11:02:37 -05:00
Dan Halbert
bb2e2ea1f6 do not start advertising automatically; update examples; fix doc issues 2019-01-23 23:44:12 -05:00
Dan Halbert
e23b5a267d UARTService -> UARTServer; update and correct examples 2019-01-22 20:21:44 -05:00
Dan Halbert
a4b6429b21 add examples 2019-01-08 16:52:42 -05:00