MQTT gateway - MQTT connection status
-
Hello to all, I have successfully set-up a MQTT gateway. Now i'm trying to expand my gateway with a LCD screen in order to display some relevant statusses. I was wondering how I can e.g know if the MQTT connection is ok or not not - you can see this if you enable debugging mode but this is too much info to display on the lcd (and not that user friendly)
-
If you are using pubsubclient, then
bool PubSubClient::connected()
should do the trick
-
@lood29 said in MQTT gateway - MQTT connection status:
bool PubSubClient::connected()
Did not work like this: it works with if (!_MQTT_client.connected()) {
2 out of 3
Suggested Topics
-
Welcome
Announcements • 23 Mar 2014, 08:24 • hek 2 Apr 2014, 14:39 -
Nb of possible nodes in a mysensors networks with domoticz
My Project • 13 Jan 2025, 18:10 • GLAB 16 Feb 2025, 01:11 -
Radar motion sensor
My Project • 24 days ago • suresh sharma 24 days ago -
Simulate Online-Recreating 'Flappy Bird' with Arduino Nano
My Project • 15 Jan 2025, 09:13 • Skylar Jones 15 Jan 2025, 09:13 -
BT832X PA / LNA
My Project • 7 days ago • nagelc 7 days ago -
Interface-board-for-remote-control
My Project • 22 days ago • OldSurferDude 9 days ago