Пример #1
0
def _write(data):
    data = str(data)
    for ch in data:
        serial_manager.write("%c" % ch)
    serial_manager.write("\0")
Пример #2
0
def _write(data):
    serial_manager.write('%s\0' % str(data))
Пример #3
0
def _write(data, connection):
    if connection:
        connection.write('%s\0' % str(data))
    else:
        serial_manager.write('%s\0' % str(data))
Пример #4
0
def _write(data):
    data = str(data)
    for ch in data:
        serial_manager.write('%c' % ch)
    serial_manager.write('\0')