mirror of https://github.com/labapart/gattlib
gattlib-py/examples/nordic_thingy: Explicitely call 'discover()'
parent
d7a323ccd7
commit
ebf3cc80fb
|
@ -161,6 +161,7 @@ if __name__ == '__main__':
|
|||
|
||||
gatt_device = device.Device(adapter=None, addr=args.mac)
|
||||
gatt_device.connect()
|
||||
gatt_device.discover()
|
||||
|
||||
temperature_characteristic = gatt_device.characteristics[NORDIC_THINGY_TEMPERATURE_CHAR]
|
||||
pressure_characteristic = gatt_device.characteristics[NORDIC_THINGY_PRESSURE_CHAR]
|
||||
|
|
Loading…
Reference in New Issue