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

    // Loop until we're reconnected
    while (!mqttClient.connected())
    {
        Serial.print("Attempting MQTT connection...");
        // Attempt to connect
        if (mqttClient.connect(MQTT_CLIENT_NAME, MQTT_USERNAME, MQTT_PASSWORD))


    while (WiFi.status() != WL_CONNECTED)
    {
        Heltec.display->clear();
        Heltec.display->drawString(0, 0, "Connecting to SSID");
        sprintf(buffer, "'%s'", WIFI_SSID);
        Heltec.display->drawString(0, CH * 2, buffer);
        Heltec.display->display();
        delay(1000);
        Serial.print(".");
        Heltec.display->clear();
        Heltec.display->display();
        delay(1000);
    }

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