def __init__(self, bus, index, service): Characteristic.__init__(self, bus, index, self.BATTERY_LVL_UUID, ['read', 'notify'], service) ##self.add_descriptor(BatteryLevelDescriptor(bus, 0, self)) self.notifying = True self.battery_lvl = 100 gobject.timeout_add(5000, self.drain_battery)
def __init__(self, bus, index, service): Characteristic.__init__(self, bus, index, self.CHARACS_UUID, ['read'], service)
def __init__(self, bus, index, service, logger): Characteristic.__init__(self, bus, index, self.CHARACS_UUID, ['read', 'write'], service) self.logger = logger
def __init__(self, bus, index, service): Characteristic.__init__(self, bus, index, self.TRANSLATION_UUID, ['read'], service)