wait after kill
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user