コード例 #1
0
 def __init__(self, bus, index, logger):
     Service.__init__(self, bus, index, self.SERVICE_UUID, True)
     self.add_characteristic(
         SystemGpioValueCharacteristic(bus, 0, self, logger))
     self.add_characteristic(SystemGpioGroupCharacteristic(bus, 1, self))
     self.add_characteristic(SystemGpioNameCharacteristic(bus, 2, self))
     self.add_characteristic(SystemGpioTypeCharacteristic(bus, 3, self))
コード例 #2
0
 def __init__(self, bus, index, logger):
     Service.__init__(self, bus, index, self.SERVICE_UUID, True)
     self.add_characteristic(
         SystemWifiValueCharacteristic(bus, 0, self, logger))
     self.add_characteristic(SystemWifiGroupCharacteristic(bus, 1, self))
     self.add_characteristic(SystemWifiNameCharacteristic(bus, 2, self))
     self.add_characteristic(SystemWifiTypeCharacteristic(bus, 3, self))
     self.add_characteristic(
         SystemWifiListCharacteristic(bus, 4, self, logger))
コード例 #3
0
    def __init__(self, bus, index, logger):
        Service.__init__(self, bus, index, self.SERVICE_UUID, True)

        self.name = "SystemDiscUsageService"
        self.add_characteristic(
            SystemDiscUsageValueCharacteristic(bus, 0, self, logger))
        self.add_characteristic(
            SystemDiscUsageGroupCharacteristic(bus, 1, self))
        self.add_characteristic(SystemDiscUsageNameCharacteristic(
            bus, 2, self))
        self.add_characteristic(SystemDiscUsageTypeCharacteristic(
            bus, 3, self))
コード例 #4
0
ファイル: Services.py プロジェクト: matzpersson/pinet-toothd
 def __init__(self, bus, index):
     Service.__init__(self, bus, index, self.BATTERY_UUID, True)
     self.add_characteristic(BatteryLevelCharacteristic(bus, 0, self))
コード例 #5
0
ファイル: Services.py プロジェクト: matzpersson/pinet-toothd
 def __init__(self, bus, index):
     Service.__init__(self, bus, index, self.TRANSLATION_UUID, True)
     self.add_characteristic(TranslationCharacteristic(bus, 0, self))