Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mosquitto-dev] Get a client's disconnection reason in the plugin

Hello, good afternoon,

I'm using the mosquitto plugin to handle client connections in the broker and would like to know if it's possible to obtain the reason for a client's disconnection using the callback associated with the MOSQ_EVT_DISCONNECT message?

Apparently, there is a "reason" attribute in the structure (mosquitto_evt_disconnect ) of this event, however, the retrieved value always indicates -1.

If there are other alternatives as well, I'm open to suggestions.

I thank you for your help.

Thiago Veronesi Bastos


Back to the top