Skip to content

Commit

Permalink
Update MQTT version to v2 (#1637)
Browse files Browse the repository at this point in the history
Co-authored-by: Thibault Martinez <[email protected]>
  • Loading branch information
Thoralf-M and thibault-martinez authored Nov 17, 2023
1 parent 5045bd9 commit eeaea97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/src/client/node_api/mqtt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ async fn set_mqtt_client(client: &Client) -> Result<(), Error> {
let secure = node.url.scheme() == "https";
let mqtt_options = if broker_options.use_ws {
let uri = format!(
"{}://{host}:{}/api/mqtt/v1",
"{}://{host}:{}/api/mqtt/v2",
if secure { "wss" } else { "ws" },
node.url.port_or_known_default().unwrap_or(port)
);
Expand Down

0 comments on commit eeaea97

Please sign in to comment.