Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gobackpack/mqtt
Concurrent MQTT publisher and subscriber
https://github.com/gobackpack/mqtt
concurrency golang mqtt
Last synced: 17 days ago
JSON representation
Concurrent MQTT publisher and subscriber
- Host: GitHub
- URL: https://github.com/gobackpack/mqtt
- Owner: gobackpack
- Created: 2021-04-20T22:15:35.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-09-15T22:01:03.000Z (over 1 year ago)
- Last Synced: 2024-11-24T15:13:37.521Z (3 months ago)
- Topics: concurrency, golang, mqtt
- Language: Go
- Homepage:
- Size: 39.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![alt Go](https://img.shields.io/github/go-mod/go-version/gobackpack/mqtt)
### ENV variables
| ENV | Default value |
|:---------------|:---------------------:|
| MQTT_HOST | localhost |
| MQTT_PORT | 1883 |
| MQTT_USERNAME | guest |
| MQTT_PASSWORD | guest |
| MQTT_CLIENT_ID | uuid.New().String() |* **Customize config values (*these are defaults*)**
```go
mqttConfig.KeepAlive = time.Second * 15
mqttConfig.CleanSession = true
mqttConfig.AutoReconnect = true
mqttConfig.MsgChanDept = 100
mqttConfig.PubQoS = 0
mqttConfig.SubQoS = 0
```* [example/main.go](https://github.com/gobackpack/mqtt/blob/main/example/main.go)