Example #1
0
 def __init__(self, bus, index):
     global tx_characteristic
     Service.__init__(self, bus, index, UART_SERVICE_UUID, True)
     tx_characteristic = TxCharacteristic(bus, 0, self)
     self.add_characteristic(tx_characteristic)
     #self.add_characteristic(TxCharacteristic(bus, 0, self))
     self.add_characteristic(RxCharacteristic(bus, 1, self))
    def __init__(self, bus, index):
        Service.__init__(self, bus, index, UART_SERVICE_UUID, True)
	self.add_characteristic(RxCharacteristic(bus, 1, UART_SLIDER1_RX_CHARACTERISTIC_UUID, self))
	self.add_characteristic(RxCharacteristic(bus, 2, UART_SLIDER2_RX_CHARACTERISTIC_UUID, self))
	self.add_characteristic(RxCharacteristic(bus, 3, UART_SLIDER3_RX_CHARACTERISTIC_UUID, self))
	self.add_characteristic(RxCharacteristic(bus, 4, UART_BUTTON_RX_CHARACTERISTIC_UUID, self))
	self.add_characteristic(TxCharacteristic(bus, 5, self))
 def __init__(self, bus, index):
     Service.__init__(self, bus, index, UART_SERVICE_UUID, True)
     self.add_characteristic(TxCharacteristic(bus, 0, self))
     self.add_characteristic(RxCharacteristic(bus, 1, self))
Example #4
0
 def __init__(self, bus, index):
     Service.__init__(self, bus, index, TTPMS_SERVICE_UUID, True)
     self.add_characteristic(SensorInfoCharacteristic(bus, 0, self))
 def __init__(self, bus, index):
     Service.__init__(self, bus, index, CONTROLLABLE_ROBOT_SERVICE_UUID, True)
     self.add_characteristic(ModeCharacteristic(bus, 0, self))
     self.add_characteristic(TargetCharacteristic(bus, 1, self))
Example #6
0
 def __init__(self, bus, index):
     Service.__init__(self, bus, index, UART_SERVICE_UUID, True)
     self.add_characteristic(TxCharacteristic(bus, 0, self))
     self.add_characteristic(RxCharacteristic(bus, 1, self))
     self.add_characteristic(PressureCharacteristic(bus, 2, self))
     self.add_characteristic(HumidityCharacteristic(bus, 3, self))