コード例 #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
ファイル: uart.py プロジェクト: DaveAldon/BLE-Server
    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
コード例 #9
0
 def __init__(self, bus, index, param_uuid, service):
     Characteristic.__init__(self, bus, index, param_uuid,
                             ['write'], service)