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

Add MQTT v5 properties support #2273

Merged
merged 5 commits into from
Jul 16, 2020
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions conf/janus.eventhandler.mqttevh.jcfg.sample
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ general: {
# plain (no indentation) or compact (no indentation and no spaces)

url = "tcp://localhost:1883" # The URL of the MQTT server. Only tcp supported at this time.
#mqtt_version = "3.1.1" # Protocol version. Available values: 3.1, 3.1.1 (default), 5.
client_id = "janus.example.com" # Janus client id. You have to configure a unique ID (default: guest).
#keep_alive_interval = 20 # Keep connection for N seconds (default: 30)
#cleansession = 0 # Clean session flag (default: off)
Expand Down Expand Up @@ -46,4 +47,7 @@ general: {
#tls_client_key = "/path/to/key.pem"
#tls_ciphers
#tls_version

# These options work with MQTT 5 only.
#add_user_properties = () # List of user property ["key", "value"] pairs to add.
Copy link
Member

Choose a reason for hiding this comment

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

It's nice to see the list/array features of libconfig finally used somewhere 🙂

}
4 changes: 4 additions & 0 deletions conf/janus.transport.mqtt.jcfg.sample
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ general: {
#certfile = /path/to/cert.pem
#keyfile = /path/to/key.pem

# These options work with MQTT 5 only.
#vacuum_interval = 60 # Interval for removing old transcation states in seconds.
Copy link
Member

Choose a reason for hiding this comment

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

Typo: transcation --> transaction

#proxy_transaction_user_properties = [] # Array of user property names to copy from the incoming message.
#add_transaction_user_properties = () # List of user property ["key", "value"] pairs to add.
}

admin: {
Expand Down
Loading