martin-ger / uMQTTBroker

MQTT Broker library for ESP8266 Arduino
MIT License
443 stars 105 forks source link

Debug INFO – View Connected Clients - Number and Topic Text #28

Open LZHenry opened 5 years ago

LZHenry commented 5 years ago

I am using uMQTTBroker.h very successfully to create my networks, but have some issues to understand.

Can you point me to how to identify: Number of CURRENTLY connected clients Text of TOPICs connected

I do get this information once from the functions “onConnect” and “onData” but would benefit from the ability to print to the serial port in the LOOP, debug information as CLIENTS connect and disconnect .

Issue:
Two CLIENTS are connected. Power OFF #1; BROKER properly identifies the unit as “offline”.

However, the BROKER also gets a message that CLIENT #2 goes “offline” then quickly back “online”. Is this “normal” MQTT functionality????

Thanks for any thought you can provide.