diff options
| author | Dan Halbert <halbert@adafruit.com> | 2019-12-06 23:51:05 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-06 23:51:05 -0500 |
| commit | f5e913101ce868ff5338586aa56c36af91a87ad2 (patch) | |
| tree | 30e7444c8e0d349221d2806c372e7efe87201071 /shared-bindings | |
| parent | fe05be86e5fbb0490c31c7c5bea21e0157048088 (diff) | |
| parent | 3fc58cee38b5fe7f7d6556d99a0196c7f600ddc5 (diff) | |
Merge pull request #2301 from tannewt/support_extended_advertising
Add support for extended (>31 byte) BLE advertisements.
Diffstat (limited to 'shared-bindings')
| -rw-r--r-- | shared-bindings/_bleio/Adapter.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/shared-bindings/_bleio/Adapter.c b/shared-bindings/_bleio/Adapter.c index 7e2a5f05b..9772fa830 100644 --- a/shared-bindings/_bleio/Adapter.c +++ b/shared-bindings/_bleio/Adapter.c @@ -144,6 +144,9 @@ const mp_obj_property_t bleio_adapter_name_obj = { //| Starts advertising until `stop_advertising` is called or if connectable, another device //| connects to us. //| +//| .. warning: If data is longer than 31 bytes, then this will automatically advertise as an +//| extended advertisement that older BLE 4.x clients won't be able to scan for. +//| //| :param buf data: advertising data packet bytes //| :param buf scan_response: scan response data packet bytes. ``None`` if no scan response is needed. //| :param bool connectable: If `True` then other devices are allowed to connect to this peripheral. |
