ble: don't make property updates exclusive
A single event may be sent for multiple properties, we need to check all of them.
This commit is contained in:
parent
c2bba6bd43
commit
ae41b23c10
|
@ -245,10 +245,10 @@ class BlueZDevice(GObject.Object):
|
|||
else:
|
||||
logger.info('Disconnected')
|
||||
self.emit('disconnected')
|
||||
elif 'ServicesResolved' in properties:
|
||||
if 'ServicesResolved' in properties:
|
||||
if properties['ServicesResolved']:
|
||||
self.emit('connected')
|
||||
elif 'RSSI' in properties:
|
||||
if 'RSSI' in properties:
|
||||
self.emit('updated')
|
||||
|
||||
def connect_gatt_value(self, uuid, callback):
|
||||
|
|
Loading…
Reference in New Issue