Пример #1
0
 def __init__(self, bus, index, service):
     Characteristic.__init__(self, bus, index, UART_TX_CHARACTERISTIC_UUID,
                             ['notify'], service)
     self.notifying = False
     self.ser = None
     self.connect_to_serial()
     GObject.timeout_add(SERIAL_TIMEOUT, self.poll_serial)
Пример #2
0
    def __init__(self, bus, index, service):
        Characteristic.__init__(self, bus, index,
                                UART_BATTERY_CHARACTERISTIC_UUID, ['notify'],
                                service)

        self.notifying = False
        GLib.io_add_watch(sys.stdin, GLib.IO_IN, self.on_console_input)
Пример #3
0
 def __init__(self, bus, index, service):
     Characteristic.__init__(self, bus, index, UART_TX_CHARACTERISTIC_UUID,
                             ['notify'], service)
     self.notifying = False
     # GObject.io_add_watch(sys.stdin, GObject.IO_IN, self.on_console_input)
     # Sposto il watcher sul Character Device Driver
     GObject.io_add_watch(dev_tx, GObject.IO_IN, self.on_cdev_input)
Пример #4
0
    def __init__(self, bus, index, service):
        Characteristic.__init__(self, bus, index, UART_TX_CHARACTERISTIC_UUID,
                                ['notify'], service)
        self.notifying = False
        global send
        send = self
        # GLib.io_add_watch(sys.stdin, GLib.IO_IN, self.on_console_input)

        edison.setBt(send)
Пример #5
0
 def __init__(self, bus, index, service):
     Characteristic.__init__(self, bus, index, UART_RX_CHARACTERISTIC_UUID,
                             ['write'], service)
Пример #6
0
 def __init__(self, bus, index, service):
     Characteristic.__init__(self, bus, index, TTPMS_DATA_CHARACTERISTIC_UUID,
                             ['read'], service)
Пример #7
0
 def __init__(self, bus, index, service):
     Characteristic.__init__(self, bus, index, ROBOT_MODE_CHARACTERISTIC_UUID,
                             ['write'], service)
Пример #8
0
 def __init__(self, bus, index, service):
     Characteristic.__init__(self, bus, index, UART_TX_CHARACTERISTIC_UUID,
                             ['notify'], service)
     self.notifying = False
 def __init__(self, bus, index, param_uuid, service):
     Characteristic.__init__(self, bus, index, param_uuid,
                             ['write'], service)