You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
235 B
Python

import select
import sys
print("Starting echo server over USB UART")
print("...")
while True:
if select.select([sys.stdin], [], [], 0)[0]:
characters = sys.stdin.readline()
print(f"Recieved: {characters.strip()}")