ble: match the disconnected signal with 'connect'
No need to pass self as argument, it's the first argument to the signal handler anywaypull/1/head
parent
20b78b89b7
commit
35e75b4aa7
|
@ -83,7 +83,7 @@ class BlueZDevice(GObject.Object):
|
||||||
"connected":
|
"connected":
|
||||||
(GObject.SIGNAL_RUN_FIRST, None, ()),
|
(GObject.SIGNAL_RUN_FIRST, None, ()),
|
||||||
"disconnected":
|
"disconnected":
|
||||||
(GObject.SIGNAL_RUN_FIRST, None, (GObject.TYPE_PYOBJECT,)),
|
(GObject.SIGNAL_RUN_FIRST, None, ()),
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, om, obj):
|
def __init__(self, om, obj):
|
||||||
|
@ -184,7 +184,7 @@ class BlueZDevice(GObject.Object):
|
||||||
self.emit('connected')
|
self.emit('connected')
|
||||||
else:
|
else:
|
||||||
logger.info('Disconnected')
|
logger.info('Disconnected')
|
||||||
self.emit('disconnected', self)
|
self.emit('disconnected')
|
||||||
|
|
||||||
def connect_gatt_value(self, uuid, callback):
|
def connect_gatt_value(self, uuid, callback):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue