Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing MQTT QoS initialization to enable QoS 1 and 2 #95

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions internal/backend/mqtt/backend.go
Expand Up @@ -116,6 +116,8 @@ func NewBackend(config BackendConfig) (*Backend, error) {
return nil, fmt.Errorf("mqtt: unknown auth type: %s", config.Auth.Type)
}

b.qos = config.Auth.Generic.QOS
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if it would be better to have this in the Backend instantiation at line 87. Feel free to amend.


switch config.Marshaler {
case "json":
b.marshal = func(msg proto.Message) ([]byte, error) {
Expand Down