def _write(data): data = str(data) for ch in data: serial_manager.write("%c" % ch) serial_manager.write("\0")
def _write(data): serial_manager.write('%s\0' % str(data))
def _write(data, connection): if connection: connection.write('%s\0' % str(data)) else: serial_manager.write('%s\0' % str(data))
def _write(data): data = str(data) for ch in data: serial_manager.write('%c' % ch) serial_manager.write('\0')