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

feat(outputs.mqtt): Add support for MQTT protocol version 5 #11284

Merged
merged 1 commit into from
Jul 27, 2022
Merged

feat(outputs.mqtt): Add support for MQTT protocol version 5 #11284

merged 1 commit into from
Jul 27, 2022

Commits on Jul 26, 2022

  1. feat(output.mqtt): Add support for MQTT protocol version 5

    By refactoring into versioned clients and adding `github.com/eclipse/paho.golang`, the MQTT output plugin can now support MQTT protocols `3.1.1` and `5`, with the default remaining `3.1.1`
    
    Other notable changes:
    - The list of servers in the config can now be prefixed with a scheme (ie, `mqtt://` or `mqtts://`), with the default being `tcp://` if not present to maintain original behavior.
    - The write timeout is for protocol `5` client is done using `context.WithTimeout`.
    - `MQTT` config was reordered to group similar properties together and `toml` tags were added for all exported fields.
    - `MQTT` integration tests were switched to the official [`eclipse-mosquitto`](https://hub.docker.com/_/eclipse-mosquitto) docker image
    cmackenzie1 committed Jul 26, 2022
    Configuration menu
    Copy the full SHA
    fcdaaee View commit details
    Browse the repository at this point in the history