hivemq / hivemq-mqtt-client

HiveMQ MQTT Client is an MQTT 5.0 and MQTT 3.1.1 compatible and feature-rich high-performance Java client library with different API flavours and backpressure support
https://hivemq.github.io/hivemq-mqtt-client/
Apache License 2.0
824 stars 153 forks source link

Not clear how to use enhancedAuth #592

Closed georrge1994 closed 4 months ago

georrge1994 commented 10 months ago

Lib contains a method enhancedAuth, which in the theory can help you to automatically reconnect if it changes login or password. How to use it? Too much SOLID in this lib - don't see the clear picture

pglombardo commented 4 months ago

Hi @georrge1994,

If you're asking how to change login credentials during reconnect, there is a good example here.

Otherwise enhanced authentication is a larger topic of which we have some great explanations:

  1. Enhanced Authentication - MQTT 5 Essentials Part 11
  2. MQTT 5 Essentials Part 10 - Enhanced Authentication Youtube Video

Does the above help out? Is this still an issue for you? If so, let us know. We'd be happy to help out!

pglombardo commented 4 months ago

Hi @georrge1994 I'll close this issue out but if anything remains, feel free to post a comment or file another issue!