summaryrefslogtreecommitdiffstatshomepage
path: root/examples/bluetooth/ble_temperature_central.py
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2023-08-24 23:28:53 +1000
committerDamien George <damien@micropython.org>2023-09-01 14:05:32 +1000
commitf4a6fc2c8e7250db3be540e91321299205383ec4 (patch)
treea7580e2511553c6fa2c6a07eafae2aa01b2d73f0 /examples/bluetooth/ble_temperature_central.py
parentb94ab6a2ef56fce3f8db2f84b26e3ac0f4b3b155 (diff)
downloadmicropython-f4a6fc2c8e7250db3be540e91321299205383ec4.tar.gz
micropython-f4a6fc2c8e7250db3be540e91321299205383ec4.zip
examples/bluetooth: Link to aioble in BLE examples.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'examples/bluetooth/ble_temperature_central.py')
-rw-r--r--examples/bluetooth/ble_temperature_central.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/bluetooth/ble_temperature_central.py b/examples/bluetooth/ble_temperature_central.py
index afa914672c..fe1c70636f 100644
--- a/examples/bluetooth/ble_temperature_central.py
+++ b/examples/bluetooth/ble_temperature_central.py
@@ -1,5 +1,11 @@
# This example finds and connects to a BLE temperature sensor (e.g. the one in ble_temperature.py).
+# This example demonstrates the low-level bluetooth module. For most
+# applications, we recommend using the higher-level aioble library which takes
+# care of all IRQ handling and connection management. See
+# https://github.com/micropython/micropython-lib/tree/master/micropython/bluetooth/aioble
+# and in particular the temp_client.py example included with aioble.
+
import bluetooth
import random
import struct