     // Loop until we're reconnected
     while (!mqttClient.connected())
     {
+        Heltec.display->clear();
+        Heltec.display->drawString(0, 0, "Connecting to MQTT");
+        sprintf(buffer, "Status=%d", mqttClient.state());
+        Heltec.display->drawString(0, CH * 2, buffer);
+        Heltec.display->display();
+
         Serial.print("Attempting MQTT connection...");
         // Attempt to connect
         if (mqttClient.connect(MQTT_CLIENT_NAME, MQTT_USERNAME, MQTT_PASSWORD))


    while (WiFi.status() != WL_CONNECTED)
    {
        delay(500);
        Serial.print(".");
    }

    Serial.print("IP number assigned by DHCP is ");

            Serial.print(mqttClient.state());
            Serial.println(" try again in 5 seconds");
            // Wait 5 seconds before retrying
            Heltec.display->clear();
            Heltec.display->display();
            delay(5000);
        }
    }
