Exemple #1
0
 def __init__(self, bus, index, service):
     Characteristic.__init__(
         self, bus, index,
         self.FITNESS_MACHINE_CONTROL_POINT_UUID,
         ['indicate', 'write'],
         service)
     self.out_q = None
Exemple #2
0
    def __init__(self, bus, index, service):
        Characteristic.__init__(
            self, bus, index, self.uuid, ["encrypt-read", "encrypt-write"], service,
        )

        self.value = []
        self.add_descriptor(CharacteristicUserDescriptionDescriptor(bus, 1, self))
Exemple #3
0
 def __init__(self, bus, index, service):
     Characteristic.__init__(
         self, bus, index,
         self.ROWING_UUID,
         ['notify'],
         service)
     self.notifying = False
     self.iter = 0
Exemple #4
0
 def __init__(self, bus, index, service):
     Characteristic.__init__(
         self, bus, index,
         self.MANUFACTURER_NAME_STRING_UUID,
         ['read'],
         service)
     self.notifying = False
     self.ManuName = bytes('0.30', 'utf-8')
     self.value = dbus.Array(self.ManuName)  # ble com module waterrower software revision
 def __init__(self, bus, index, service):
     Characteristic.__init__(
         self,
         bus,
         index,
         self.uuid,
         ["read"],
         service,
     )
    def __init__(self, bus, index, service):
        Characteristic.__init__(
            self,
            bus,
            index,
            self.uuid,
            ["read", 'notify'],
            service,
        )
        self.notifying = False

        self.count = 0
Exemple #7
0
    def __init__(self, bus, index, service):
        Characteristic.__init__(
            self, bus, index,
            self.SOFTWARE_REVISION_STRING_UUID,
            ['read'],
            service)
        self.notifying = False
        #self.value = [dbus.Byte(0), dbus.Byte(0), dbus.Byte(0), dbus.Byte(0)]  # ble com module waterrower software revision
        self.value = [dbus.Byte(0), dbus.Byte(0), dbus.Byte(0)]  # ble com module waterrower software revision

        self.value[0] = 0x34
        self.value[1] = 0x2E
        self.value[2] = 0x33
Exemple #8
0
    def __init__(self, bus, index, service):
        Characteristic.__init__(
            self,
            bus,
            index,
            self.uuid,
            ["indicate"],
            service,
        )

        self.value = [0xFF]
        self.add_descriptor(
            CharacteristicUserDescriptionDescriptor(bus, 1, self))
Exemple #9
0
 def __init__(self, bus, index, service, tx):
     Characteristic.__init__(
         self,
         bus,
         index,
         self.uuid,
         ["write"],
         service,
     )
     self.tx = tx
     self.value = [0xFF]
     self.add_descriptor(
         CharacteristicUserDescriptionDescriptor(bus, 1, self))
     self.service = service
Exemple #10
0
    def __init__(self, bus, index, service, params):
        Characteristic.__init__(
            self,
            bus,
            index,
            self.uuid,
            ["encrypt-read"],
            service,
        )

        self.params = params
        self.value = [0xFF]
        self.add_descriptor(
            CharacteristicUserDescriptionDescriptor(bus, 1, self))
Exemple #11
0
    def __init__(self, bus, index, service):
        Characteristic.__init__(
            self,
            bus,
            index,
            self.uuid,
            ["read", 'notify'],
            service,
        )
        self.notifying = False

        self.count = 0
        self.add_descriptor(
            CharacteristicUserDescriptionDescriptor(bus, 1, self))
Exemple #12
0
    def __init__(self, bus, index, service):
        Characteristic.__init__(
            self, bus, index,
            self.FITNESS_MACHINE_FEATURE_UUID,
            ['read'],
            service)
        self.notifying = False
        self.value = [dbus.Byte(0),dbus.Byte(0),dbus.Byte(0),dbus.Byte(0),dbus.Byte(0),dbus.Byte(0),dbus.Byte(0),dbus.Byte(0)]  # ble com module waterrower software revision

        self.value[0] = 0x26
        self.value[1] = 0x56
        self.value[2] = 0x00
        self.value[3] = 0x00
        self.value[4] = 0x00
        self.value[5] = 0x00
        self.value[6] = 0x00
        self.value[7] = 0x00
Exemple #13
0
 def __init__(self, bus, index, service):
     Characteristic.__init__(self, bus, index, self.SMARTROW_DATA_UUID,
                             ['notify', 'read'], service)
     self.notifying = False
     self.iter = 0
Exemple #14
0
 def __init__(self, bus, index, service):
     Characteristic.__init__(self, bus, index, self.WRITE_TO_SMARTROW_UUID,
                             ['write-without-response'], service)
     self.value = 0