Describe docker compose example

This commit is contained in:
Ollo
2024-12-17 20:58:17 +01:00
parent 037b2ef12c
commit 3ca17eb4cf
3 changed files with 22 additions and 2 deletions

1
mqttclient/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
docker-compose.yml

View File

@@ -77,7 +77,7 @@ try:
continue
except (serial.SerialException):
client.publish(mqtt_topic + "exception", "serial reopen") # check which port was really used
time.sleep(1.0)
time.sleep(3.0)
try:
line = ser.readline() # read a '\n' terminated line
@@ -149,7 +149,7 @@ try:
else:
client.publish(mqtt_topic + "debug", line) # line was invalid and could not be parsed
else:
time.sleep(0.2)
time.sleep(0.5)
except (KeyboardInterrupt, SystemExit):
print("User aborted service ...")