Releases: adafruit/Adafruit_CircuitPython_BLE
Remove timeout as arg on 5.x for BLERadio.start_advertising()
Do not use timeout
arg in start_advertising()
on 5.x. Thanks @roamingthings!
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.
BLERadio advertising timeout, .advertising, ReportOut.report
- add
timeout
toBLERadio.start_advertising
- add
BLERadio.advertising
property - add
ReportOut.report
property to get keyboard leds info
Thanks @xiongyihui (#98)!
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.
Preserve ordering of ManufacturerDataField objects in ManufacturerData
Use an OrderedDict to preserve the ordering of ManufacturerDataField objects in ManufacturerData. They will appear in the order they are set.
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.
7.0.3 - Added READ & NOTIFY permissions to battery service
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.
7.0.2 - Fixed discord invite link
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.
Filter scan correctly when one advertising class has no prefixes
start_scan()
did not handle the case of mixing an Advertisement class with no prefixes with classes with some prefixes. This is used in examples/ble_detailed_scan.py
.
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.
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.
6.1.5 - Fix animation speed in color picker example
Thanks @nnja for the PR
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.
6.1.4 - Fixed max length of variable-length characteristic
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.
6.1.3 - check that initial_value is explicitly None
IntCharacteristic
, FloatCharacteristic
, and StructCharacteristic
were not checking that initial_value
was explicitly None
, but just that it was false. This made it not possible to give an initial value of 0
, 0.0
, or b''
, respectively.
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.