diff options
author | Jim Mussared <jim.mussared@gmail.com> | 2020-06-05 15:40:29 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2020-06-10 22:39:54 +1000 |
commit | c6fd6a0d728fea590e7f731e41a33754111770bd (patch) | |
tree | 4f0bc6a39cb62a7d7a93106d1fb45baa5ba9d48a /examples/bluetooth/ble_temperature_central.py | |
parent | 3705bc418cadd9d6ad87f2bcd5443ba82f730e15 (diff) | |
download | micropython-c6fd6a0d728fea590e7f731e41a33754111770bd.tar.gz micropython-c6fd6a0d728fea590e7f731e41a33754111770bd.zip |
examples/bluetooth: Fix event code in ble_temperature_central.py.
Diffstat (limited to 'examples/bluetooth/ble_temperature_central.py')
-rw-r--r-- | examples/bluetooth/ble_temperature_central.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/bluetooth/ble_temperature_central.py b/examples/bluetooth/ble_temperature_central.py index 1ce99728b3..f9db225c16 100644 --- a/examples/bluetooth/ble_temperature_central.py +++ b/examples/bluetooth/ble_temperature_central.py @@ -128,7 +128,7 @@ class BLETemperatureCentral: if conn_handle == self._conn_handle and uuid == _ENV_SENSE_UUID: self._start_handle, self._end_handle = start_handle, end_handle - elif event == _IRQ_GATTC_SERVICES_DONE: + elif event == _IRQ_GATTC_SERVICE_DONE: # Service query complete. if self._start_handle and self._end_handle: self._ble.gattc_discover_characteristics( @@ -143,7 +143,7 @@ class BLETemperatureCentral: if conn_handle == self._conn_handle and uuid == _TEMP_UUID: self._value_handle = value_handle - elif event == _IRQ_GATTC_CHARACTERISTICS_DONE: + elif event == _IRQ_GATTC_CHARACTERISTIC_DONE: # Characteristic query complete. if self._value_handle: # We've finished connecting and discovering device, fire the connect callback. |