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)
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)
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)
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)
def __init__(self, bus, index, service): Characteristic.__init__(self, bus, index, UART_RX_CHARACTERISTIC_UUID, ['write'], service)
def __init__(self, bus, index, service): Characteristic.__init__(self, bus, index, TTPMS_DATA_CHARACTERISTIC_UUID, ['read'], service)
def __init__(self, bus, index, service): Characteristic.__init__(self, bus, index, ROBOT_MODE_CHARACTERISTIC_UUID, ['write'], service)
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)