     receivedpayload += (char)inpayload[i];
   }
 
-  Serial.print("[MQTT] intopic : ");
-  Serial.print(receivedtopic);
-  Serial.print(" payload: ");
-  Serial.println(receivedpayload);
-
   parseMqttMsg(receivedpayload, receivedtopic);
 }
 
 bool verifytls()
 {
-  Serial.print("[MQTT] tls connecting to ");
-  Serial.println(mqtt_server);
+
   if (!sslclient.connect(mqtt_server, 8883))
   {
-    Serial.println("[MQTT] tls connection failed");
     return false;
   }
 
   if (sslclient.verify(MQTT_FINGERPRINT, MQTT_SERVER_CN))
   {
-    Serial.println("[MQTT] tls certificate matches");
     sslclient.stop();
     return true;
   }
   else
   {
-    Serial.println("[MQTT] tls certificate doesn't match");
     sslclient.stop();
     return false;
   }


        client.subscribe(subscribe_topic);
        client.loop();
        Serial.println("[MQTT] mqtt connected");
        ticker.attach(1, tick);
      }
      else
      {
        Serial.print("[MQTT] mqtt failed, rc=");
        Serial.println(client.state());
        ticker.attach(0.5, tick);
      }
    }
  }

    int Attempt = 0;
    while (WiFi.status() != WL_CONNECTED)
    {
      delay(100);
      Attempt++;
      if (Attempt == 150)
      {
        ESP.restart();
        delay(200);
      }
    }
  }
}

