blob: cb95d7ce28b99c6c3eefd6ea554236a2591161b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/usr/bin/env 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))
|