def __init__(self, bus, index, characteristic): self.writable = 'writable-auxiliaries' in characteristic.flags self.value = array.array('B', 'This is a characteristic for testing') self.value = self.value.tolist() Descriptor.__init__( self, bus, index, self.CUD_UUID, ['read', 'write'], characteristic)
def __init__(self, characteristic): Descriptor.__init__(self, uuids.PRESENTATION_FORMAT_DESCRIPTOR_UUID, ["read"], characteristic)
def __init__(self, characteristic): Descriptor.__init__(self, uuids.USER_DESC_DESCRIPTOR_UUID, ["read"], characteristic)
def __init__(self, characteristic): Descriptor.__init__( self, self.TEMP_DESCRIPTOR_UUID, ["read"], characteristic)
def __init__(self, bus, index, characteristic): Descriptor.__init__( self, bus, index, self.TEST_DESC_UUID, ['read', 'write'], characteristic)