summaryrefslogtreecommitdiff
path: root/examples/bluetooth/ble_temperature_central.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bluetooth/ble_temperature_central.py')
-rw-r--r--examples/bluetooth/ble_temperature_central.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/bluetooth/ble_temperature_central.py b/examples/bluetooth/ble_temperature_central.py
index 19dc93409..619578462 100644
--- a/examples/bluetooth/ble_temperature_central.py
+++ b/examples/bluetooth/ble_temperature_central.py
@@ -161,6 +161,10 @@ class BLETemperatureCentral:
self._read_callback(self._value)
self._read_callback = None
+ elif event == _IRQ_GATTC_READ_DONE:
+ # Read completed.
+ conn_handle, value_handle, status = data
+
elif event == _IRQ_GATTC_NOTIFY:
# The ble_temperature.py demo periodically notifies its value.
conn_handle, value_handle, notify_data = data