davidepianca98/KMQTT

Provide the Client ID inside MQTTDisconnect

leinardi opened this issue · 2 comments

MQTTConnect offers a lot of data about the client that connected to the MQTT broker, but MQTTDisconnect does not provide any information at all beside that some unidentified session was closed.

It would be useful if MQTTDisconnect would provide at least the Client ID of the client that disconnected from the broker.

Hello, are you talking about the PacketInterceptor interface? This will provide only the content of the received message. If you want to know the clientId of the clients on disconnection, you can implement the ConnectionCallbacks interface. Please let me know if this is enough for your use case.

Yeah exactly, I'm referring to the PacketInterceptor one. I'll try with the connection callback but once 6dcc30c is released, I won't need it anymore because I'm using it just to manually keep a track of the connected clients.