simplersble 0.14.1-dev74

The all-in-one Bluetooth library that makes it easy to add wireless connectivity to your projects.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from dbus_next.service import ServiceInterface, method

class Emulator(ServiceInterface):
    def __init__(self, bus):
        self.bus = bus
        super().__init__("simpledbus.tester")

    def export(self):
        self.bus.export("/", self)

    @method()
    def Exit(self):
        """
        Finishes the emulation session by disconnecting from dbus.
        """
        self.bus.disconnect()