• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

yylego / go-mqtt
33%
main: 33%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v0.0.1
DEFAULT BRANCH: main
Repo Added 27 Mar 2026 02:25AM UTC
Files 9
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH refs/tags/v0.0.1
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • main
  • refs/tags/v0.0.1

25 Oct 2026 08:37PM UTC coverage: 33.23%. First build
40231842805

push

github

yyle88
Keep MQTT clients online across drops and add a one-line Subscribe

- Give the ping 10 seconds to come back; it was 1 second, which cut good links on slow networks
- Cap the wait between reconnect attempts at 10 seconds; the paho default lets it grow to 10 minutes
- The resubscribe loop checks IsConnectionOpen, since IsConnected stays true while reconnecting and the loop spun on a dead link
- New Callback.Subscribe(topic, qos, onMessage) subscribes a topic on each connect in one line; a rejection (return code 0x80) now counts as a fault, so a topic without permission stops looking subscribed
- The gap between callback attempts starts at 100ms and doubles up to 5s, so a callback that keeps failing does not flood the logs
- SetLog keeps the Log in an atomic slot, so a swap while clients run is safe
- Demos use uuid.NewString in place of the private utils package, so the code copied out of the README builds as is; the unused utils package is removed
- Tests: reconnect once kicked from the service side, a rejected subscription, and a test of each exported function; fix two data races in the tests
- go.mod moves to Go 1.26 since the newest x/net and x/sync need it; the CI matrix, badge and README follow; the release workflow and .gitignore match the newest templates
- Counted loops switch to the range form

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

37 of 53 new or added lines in 8 files covered. (69.81%)

107 of 322 relevant lines covered (33.23%)

8.52 hits per line

Relevant lines Covered
Build:
Build:
322 RELEVANT LINES 107 COVERED LINES
8.52 HITS PER LINE
Source Files on main
  • Tree
  • List 9
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
40231842805 refs/tags/v0.0.1 Keep MQTT clients online across drops and add a one-line Subscribe - Give the ping 10 seconds to come back; it was 1 second, which cut good links on slow networks - Cap the wait between reconnect attempts at 10 seconds; the paho default lets it g... push 25 Oct 2026 08:40PM UTC yyle88 github
33.23
40231675245 main Keep MQTT clients online across drops and add a one-line Subscribe - Give the ping 10 seconds to come back; it was 1 second, which cut good links on slow networks - Cap the wait between reconnect attempts at 10 seconds; the paho default lets it g... push 25 Oct 2026 08:38PM UTC yyle88 github
33.23
See All Builds (2)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc