removing process killer
This commit is contained in:
@@ -90,10 +90,10 @@ def publish(client, temp, humidity):
|
|||||||
|
|
||||||
|
|
||||||
# We first check if a libgpiod process is running. If yes, we kill it!
|
# We first check if a libgpiod process is running. If yes, we kill it!
|
||||||
for proc in psutil.process_iter():
|
# for proc in psutil.process_iter():
|
||||||
if proc.name() == 'libgpiod_pulsein' or proc.name() == 'libgpiod_pulsei':
|
# if proc.name() == 'libgpiod_pulsein' or proc.name() == 'libgpiod_pulsei':
|
||||||
proc.kill()
|
# proc.kill()
|
||||||
time.sleep(1.0)
|
#time.sleep(1.0)
|
||||||
client = connect_mqtt()
|
client = connect_mqtt()
|
||||||
client.loop_start()
|
client.loop_start()
|
||||||
print (sensor)
|
print (sensor)
|
||||||
|
|||||||
Reference in New Issue
Block a user