diff options
Diffstat (limited to 'receive-test.py')
-rwxr-xr-x | receive-test.py | 16 |
1 files changed, 16 insertions, 0 deletions
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)) + |