From 843bb50c48a8b11c572c1e64e0237d09d635e1f0 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Sun, 27 Jan 2019 00:27:21 +0100 Subject: init --- receive-test.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 receive-test.py (limited to 'receive-test.py') diff --git a/receive-test.py b/receive-test.py new file mode 100755 index 0000000..663f7a5 --- /dev/null +++ b/receive-test.py @@ -0,0 +1,16 @@ +#!./bin/python3 + +from RFXtrx import PySerialTransport +import sys, datetime, os + +transport = PySerialTransport('/dev/ttyUSB0') +transport.reset() + +while True: + if os.path.isfile('./stop'): + break + + timestamp = datetime.datetime.timestamp(datetime.datetime.now()) + recv = transport.receive_blocking() + print(str(recv)) + -- cgit v1.2.3