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))
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))
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))
def __init__(self, bus, index): Service.__init__(self, bus, index, self.BATTERY_UUID, True) self.add_characteristic(BatteryLevelCharacteristic(bus, 0, self))
def __init__(self, bus, index): Service.__init__(self, bus, index, self.TRANSLATION_UUID, True) self.add_characteristic(TranslationCharacteristic(bus, 0, self))