This commit is contained in:
robert 2021-02-14 21:47:25 +01:00
commit 1c0e6a2126
2 changed files with 1 additions and 4 deletions

View File

@ -23,16 +23,13 @@ client = paho.Client(protocol=paho.MQTTv31) # * set a random string (max 23 cha
client.connect(mqtt_broker, 1883, 60) # MQTT server address client.connect(mqtt_broker, 1883, 60) # MQTT server address
#client.loop_start() #client.loop_start()
process = os.popen('/usr/local/bin/rtl_433 -R 42 -R 03 -F json -T 65 -M time:utc:usec') process = os.popen('/usr/local/bin/rtl_433 -R 42 -R 03 -F json -T 65 -M time:utc:usec')
processData = process.read().split('\n') processData = process.read().split('\n')
print("processData: ") print("processData: ")
print(processData) print(processData)
for i in processData: for i in processData:
print("i: ") print("i: ")
print(len(i)) print(len(i))