   }
   */
 
-  client.loop();
-  
+  //client.loop();
+
   if (client.connected()) {
     if (DEBUG_PRINT) {
       Serial.print("Sending payload: ");


void setup() {
  if (DEBUG_PRINT) {
    Serial.begin(74880);
  }
  delay(20);
  if (DEBUG_PRINT) {

        Serial.print(client.state());
      }
      long now = millis();
      //      if (now - lastReconnectAttempt > 5000) {
      if (now - lastReconnectAttempt > 1000) {
        lastReconnectAttempt = now;
        if (reconnect()) {
