← Back to team overview

mosquitto-users team mailing list archive

Re: 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