HiveMQ

SimpleAuthenticator and Automatic Reconnect

I’ve written a SimpleAuthenticator plugin and am seeing some weird behavior, and was hoping I’m overlooking something. I’m able to authenticate a client no problem, but if I bring down the hivemq server and restart it, the client does indeed reconnect and the SimpleAuthenticator gets called a second time, however it appears that getConnectPacket().getUsername() is empty. Does the client not send authentication information on reconnects?

Figured it out. Simple Auth needs to be applied to the Mqtt5ClientBuilder.