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

yylego / go-mqtt / 40231842805
33%
main: 33%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v0.0.1
DEFAULT BRANCH: main
Ran 25 Oct 2026 08:40PM UTC
Jobs 3
Files 9
Run time 1min
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

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

Uncovered Changes

Lines Coverage ∆ File
4
82.98
mqttgo/client.go
3
0.0
internal/demos/demo1x/main.go
3
0.0
internal/demos/demo2x/main.go
2
0.0
internal/sketches/sketch1/main.go
2
0.0
internal/sketches/sketch2/main.go
1
91.3
mqttgo/config.go
1
94.74
mqttgo/log.go
Jobs
ID Job ID Ran Files Coverage
1 Go-stable - 40231842805.1 25 Oct 2026 08:40PM UTC 9
27.12
GitHub Action Run
2 Go-1.26.x - 40231842805.2 25 Oct 2026 08:40PM UTC 9
29.64
GitHub Action Run
3 Go-1.27.x - 40231842805.3 25 Oct 2026 08:40PM UTC 9
27.12
GitHub Action Run
Source Files on build 40231842805
  • Tree
  • List 9
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 385ff6b9 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