7.0.0 - Backwards compatible change in how advertising prefixes can be specified
This release includes:
- Advertisement-matching prefixes are now specified as tuples of prefixes.
You no longer need to count up the bytes and include a length byte in front of each subprefix. - The class attribute has been renamed from prefix to match_prefixes. This is an incompatible change; but other BLE libraries have been updated to support it, so you will have to update those libraries as well.
- All the definitions of get(self, obj, cls) now check for obj is None, and return self in that case. This is because MicroPython/CircuitPython don't invoke descriptor protocol on obj's class, but CPython does.
- Catch when microcontroller is not present, such as when running in CPython.
Windows doesn't have os.uname(), so catch that. - Make it easier and clearer for an Advertisement subclass to change the behavior of matches() from all to any.
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
To use in CPython, pip3 install adafruit-circuitpython-ble
.
Read the docs for info on how to use it.