Skip to content

Commit

Permalink
removed internet connection mqtt publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
exddc committed Jun 17, 2024
1 parent a6bee80 commit 529a56e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions agent/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,9 @@ def _check_internet_connection(self):
if not self._has_internet:
LOGGER.info("Internet connection established.")
self._has_internet = True
self._mqtt.publish("internet_connection", "online")
else:
self._has_internet = False
LOGGER.warning("No internet connection. Retrying in 60 seconds.")
self._mqtt.publish("internet_connection", "offline")
time.sleep(60)


Expand Down

0 comments on commit 529a56e

Please sign in to comment.