Skip to content

Keep mqtt connection open, avoid 0s on start#19

Open
chatziko wants to merge 1 commit intoorbforge:mainfrom
chatziko:persistent-mqtt
Open

Keep mqtt connection open, avoid 0s on start#19
chatziko wants to merge 1 commit intoorbforge:mainfrom
chatziko:persistent-mqtt

Conversation

@chatziko
Copy link
Copy Markdown

@chatziko chatziko commented May 6, 2026

A small PR with 2 MQTT improvements

  1. Use a long-running mosquitto_pub process to avoid the reconnection cost every few seconds
  2. Sleep before the first publish, to avoid sending zeros on first run when we don't have data yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant