Search found 2 matches
- Thu Mar 23, 2017 9:08 pm
- Forum: WiPy and CC3200 boards
- Topic: Looking for terminator in data drom UART
- Replies: 1
- Views: 3001
Looking for terminator in data drom UART
Hello, I need to catch a terminator \r in data I receive from UART and I've got this code: [code] data = "" while True: bytes = uart.read() if bytes is not None: idx = str(bytes).find("'", 2) data += str(bytes)[2:idx] print(data[len(data)-2:]) if data.find("\r") != -1: print("Here\r\n") [/code] But ...
- Wed Mar 15, 2017 4:50 pm
- Forum: WiPy and CC3200 boards
- Topic: CA certificate and WiFi
- Replies: 0
- Views: 2545