wait after kill

This commit is contained in:
2022-11-28 16:07:55 -05:00
parent 9da08f76f1
commit 2e79cdd10e

View File

@@ -93,6 +93,7 @@ def publish(client, temp, humidity):
for proc in psutil.process_iter():
if proc.name() == 'libgpiod_pulsein' or proc.name() == 'libgpiod_pulsei':
proc.kill()
time.sleep(1.0)
client = connect_mqtt()
client.loop_start()
print (sensor)