コード例 #1
0
 def __init__(self, bus, index, service, process_rx):
     Characteristic.__init__(self, bus, index, UART_RX_CHARACTERISTIC_UUID,
                             ['write'], service)
     self.process_rx = process_rx
コード例 #2
0
 def __init__(self, bus, index, service):
     Characteristic.__init__(self, bus, index, UART_TX_CHARACTERISTIC_UUID,
                             ['notify'], service)
     self.notifying = False
     GLib.io_add_watch(sys.stdin, GLib.IO_IN, self.on_console_input)