bluetooth-gatt

Bluetooth Gatt Server Python

Bluetooth Gatt Server Python Question: `class TxCharacteristic(Characteristic): 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) def on_console_input(self, fd, condition): s = fd.readline() if s.isspace(): pass else: self.send_tx(s) return True #Send def send_tx(self, s): if not self.notifying: return value = [] if s == "Syncn": milliseconds = …

Total answers: 1