summaryrefslogtreecommitdiff
path: root/shared-bindings
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2019-11-19 13:55:58 -0800
committerScott Shawcroft <scott@tannewt.org>2019-11-19 13:55:58 -0800
commit11c2c3443f65e6d0342417c5dbc42302992710da (patch)
treef0999792baf7b56028bef1f17af3971890947be0 /shared-bindings
parent1a22d8a0f23aa9aee426b8716220d907f9cb98d6 (diff)
Add support for extended (>31 byte) BLE advertisements.
Diffstat (limited to 'shared-bindings')
-rw-r--r--shared-bindings/_bleio/Adapter.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/shared-bindings/_bleio/Adapter.c b/shared-bindings/_bleio/Adapter.c
index 24a70f408..8efdb387a 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.