← Back to team overview

mosquitto-users team mailing list archive

Re: Mosquitto Client state

 

Hi Josh,

There is no direct way of telling what clients are connected from the
broker, but you can do it from the client. The disconnects messages
can be provided by the "last will and testament" feature as described
here: http://mqtt.org/wiki/doku.php/presence

Cheers,

Roger

On Mon, Dec 31, 2012 at 6:07 AM, Josh Hawley <jhawley@xxxxxxxxxxxxxxxxx> wrote:
> Is there any way to tell when individual clients connect and disconnect? I
> see that there are some statistics, but what I am looking for is a logging
> channel something like “Client: <clientid> disconnected”. I can easily just
> make my clients announce themselves when they connect, but that doesn’t work
> for disconnects.
>
>
>
> Josh Hawley
>
> Hawley Hosting
>
> jhawley@xxxxxxxxxxxxxxxxx
>
>
>
>
> --
> Mailing list: https://launchpad.net/~mosquitto-users
> Post to     : mosquitto-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~mosquitto-users
> More help   : https://help.launchpad.net/ListHelp
>


References