test
This commit is contained in:
@@ -89,7 +89,6 @@ def publish(client, temp, humidity):
|
||||
time.sleep(5.0)
|
||||
|
||||
|
||||
def run(sensor):
|
||||
# We first check if a libgpiod process is running. If yes, we kill it!
|
||||
for proc in psutil.process_iter():
|
||||
if proc.name() == 'libgpiod_pulsein' or proc.name() == 'libgpiod_pulsei':
|
||||
@@ -100,6 +99,3 @@ def run(sensor):
|
||||
while True:
|
||||
temp, humidity = getValues(sensor)
|
||||
publish(client, temp, humidity)
|
||||
|
||||
#if __name__ == '__main__':
|
||||
run(sensor)
|
||||
Reference in New Issue
Block a user