Bluetooth
class BluetoothDevice (device: Device, client: BluetoothClient, **kwargs)
Bases: Service
Default service constructor (base constructor)
-
Parameters: **kwargs —
mapped to signal connections (e.g. on_clicked=lambda *_: … connects the given function to the signal “clicked”, notify_my_property=my_func connects the given function to the signal “notify::my-property”)
signal changed (self) NoneType
property device Device
property connected bool
property connecting bool
property closed bool
property paired bool
property trusted bool
property address str
property name str
property alias str
property icon_name str
property type str
property battery_level int
property battery_percentage float
def connect_device (connect: bool = True, callback: ~collections.abc.Callable[[~typing.Concatenate[bool, ~P]], ~typing.Any] | None = None, *args: ~typing.~P, **kwargs: ~typing.~P)
def close ()
def notifier (name: str, args=None)
class BluetoothClient (**kwargs)
Bases: Service
Default service constructor (base constructor)
-
Parameters: **kwargs —
mapped to signal connections (e.g. on_clicked=lambda *_: … connects the given function to the signal “clicked”, notify_my_property=my_func connects the given function to the signal “notify::my-property”)