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

Implement MQTT5 enhancements #422

Open
bschaer opened this issue Aug 14, 2020 · 5 comments
Open

Implement MQTT5 enhancements #422

bschaer opened this issue Aug 14, 2020 · 5 comments

Comments

@bschaer
Copy link

bschaer commented Aug 14, 2020

We are using extensively the new MQTT5 features, namely properties. It would be nice if full (or at least partial) support for MQTT5 could be added. Most importantly we miss the following features:

  • Display all property values coming with an incoming publish
  • Being able to set at least the follownig properties with an outgoing publish:
    • Content Type
    • Response Topic
    • Correlation Data
    • User Property
@couling
Copy link

couling commented Sep 17, 2020

For me, just being able to connect with MQTT 5 protocol would be an advantage.

@friesendrywall
Copy link

Any update on this request?

@friesendrywall
Copy link

friesendrywall commented Jan 22, 2021

If you run from yarn, update package.json to use newest mqtt, then set like this in
backend/src/DataSource/MqttSource.ts

const client = mqttConnect(url, {
      resubscribe: false,
      rejectUnauthorized: options.certValidation,
      username: options.username,
      password: options.password,
      clientId: options.clientId,
      servername: options.tls ? url.hostname : undefined,
      ca: options.certificateAuthority ? Buffer.from(options.certificateAuthority, 'base64') : undefined,
      cert: options.clientCertificate ? Buffer.from(options.clientCertificate, 'base64') : undefined,
      key: options.clientKey ? Buffer.from(options.clientKey, 'base64') : undefined,
      protocolVersion: 5,
    } as any)

@bschaer
Copy link
Author

bschaer commented Jan 22, 2021

Just to be able to connect to an MQTT5 broker is no benefit, if we cannot exploit the new MQTT5 features.

@friesendrywall
Copy link

Its of slight benefit to me, and @couling, however yes, I would prefer full features. Its a freeby though. I do find the tree representation of data nice vs the only other 5.0 compatible client mqqtx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants