mosquitto-users team mailing list archive
-
mosquitto-users team
-
Mailing list archive
-
Message #00152
Re: Mosquitto Client state
-
To:
<mosquitto-users@xxxxxxxxxxxxxxxxxxx>
-
From:
"Josh Hawley" <jhawley@xxxxxxxxxxxxxxxxx>
-
Date:
Mon, 31 Dec 2012 09:14:24 -0800
-
In-reply-to:
<CAF=vhqfBZsM6O7BPpvK2mCaWHL2NtJjKXQ5qv7CxeDe9kzOYtA@mail.gmail.com>
-
Thread-index:
Ac3nPuOLWTJLG8GyQEqbvcmaD/ygHQAO1D6A
-
Thread-topic:
[Mosquitto-users] Mosquitto Client state
Looks like I just needed to RTFM... Sorry.
Josh Hawley
Hawley Hosting
jhawley@xxxxxxxxxxxxxxxxx
From: Nicholas O'Leary [mailto:nick.oleary@xxxxxxxxx]
Sent: Monday, December 31, 2012 2:09 AM
To: Josh Hawley
Subject: Re: [Mosquitto-users] Mosquitto Client state
Hi josh,
Have a look at this page on the wiki:
http://mqtt.org/wiki/doku.php/presence
It describes how to track which clients are connected, without relying
on any particular broker-specific feature. The clients announce
themselves on connect, and use the Will feature of MQTT to announce
their disconnection.
Cheers,
Nick
On Monday, 31 December 2012, Josh Hawley 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
<javascript:_e(%7b%7d,%20'cvml',%20'jhawley@xxxxxxxxxxxxxxxxx');>
References