Skip to content

Releases: adafruit/Adafruit_CircuitPython_BLE

Remove timeout as arg on 5.x for BLERadio.start_advertising()

23 Aug 14:26
20f21e7
Compare
Choose a tag to compare

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

19 Aug 12:29
9af3aff
Compare
Choose a tag to compare
  • add timeout to BLERadio.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

18 Aug 03:39
aee83fb
Compare
Choose a tag to compare

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

16 Jul 17:48
41f7a35
Compare
Choose a tag to compare

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

09 Jul 21:02
Compare
Choose a tag to compare

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

28 Jun 14:34
7b06c53
Compare
Choose a tag to compare

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

18 Jun 17:54
7dcb774
Compare
Choose a tag to compare

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

15 Jun 20:56
3585131
Compare
Choose a tag to compare

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

14 May 16:13
5d58457
Compare
Choose a tag to compare

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

23 Apr 17:25
96774b1
Compare
Choose a tag to compare

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.