Skip to content

Commit

Permalink
examples/bluetooth: Link to aioble in BLE examples.
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Mussared <[email protected]>
  • Loading branch information
jimmo authored and dpgeorge committed Sep 1, 2023
1 parent b94ab6a commit f4a6fc2
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/bluetooth/ble_advertising.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Helpers for generating BLE advertising payloads.

# A more fully-featured (and easier to use) version of this is implemented in
# aioble. This code is provided just as a basic example. See
# https://github.com/micropython/micropython-lib/tree/master/micropython/bluetooth/aioble

from micropython import const
import struct
import bluetooth
Expand Down
5 changes: 5 additions & 0 deletions examples/bluetooth/ble_bonding_peripheral.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
# any connected central every 10 seconds.
#
# Work-in-progress demo of implementing bonding and passkey auth.
#
# This example demonstrates the low-level bluetooth module. For most
# applications, we recommend using the higher-level aioble library, which
# includes an implementation of the secret store. See
# https://github.com/micropython/micropython-lib/tree/master/micropython/bluetooth/aioble

import bluetooth
import random
Expand Down
5 changes: 5 additions & 0 deletions examples/bluetooth/ble_simple_central.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# This example finds and connects to a peripheral running the
# UART service (e.g. ble_simple_peripheral.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

import bluetooth
import random
import struct
Expand Down
5 changes: 5 additions & 0 deletions examples/bluetooth/ble_simple_peripheral.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# This example demonstrates a UART periperhal.

# 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

import bluetooth
import random
import struct
Expand Down
6 changes: 6 additions & 0 deletions examples/bluetooth/ble_temperature.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
# The sensor's local value updates every second, and it will notify
# any connected central every 10 seconds.

# 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_sensor.py example included with aioble.

import bluetooth
import random
import struct
Expand Down
6 changes: 6 additions & 0 deletions examples/bluetooth/ble_temperature_central.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 5 additions & 0 deletions examples/bluetooth/ble_uart_peripheral.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# This example demonstrates a peripheral implementing the Nordic UART Service (NUS).

# 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

import bluetooth
from ble_advertising import advertising_payload

Expand Down

0 comments on commit f4a6fc2

Please sign in to comment.