     } else {
       Serial.print("failed, rc=");
       Serial.print(mqttClient.state());
-      Serial.println(" try again in 5 seconds");
-      // Wait 5 seconds before retrying
-      delay(5000);
+      Serial.println(" try again in 6 seconds");
+      // Wait 6 seconds before retrying
+      delay(6000);
     }
   }
   if ( nbtry == MAX_CLIENT_RETRIES ) {
     Serial.println("Give up on mqtt client connect!");
     Serial.println("It would be a good time to reboot the board now...");
-    // system_restart();
+    abort();
   }
   return connected;
 }


#define MAX_CLIENT_RETRIES 10

uint16_t proxim_nominal = 2000;
uint16_t proxim_anomaly = 100;
uint16_t event_count = 0;

uint16_t proxim_samples[NB_PROXIM_SAMPLES];

  mqttClient.loop();

  delay(10);
}

