@lood29 said in MQTT gateway - MQTT connection status: bool PubSubClient::connected() Did not work like this: it works with if (!_MQTT_client.connected()) {