 ProfileHandler* handlers[MAX_HANDLERS];
 char clientId[13];
 char* configTopic;
+unsigned long lastBroadcast = 0;
 
 WiFiClient wifiClient;
 MQTTClient client(512); //max package size

      client.subscribe(configTopic);

      delay(100);
      //Announce ourselves, hopefully someone will reply and will start doing fun stuff
      Serial.print("Broadcasting..");
      client.publish("broadcast", clientId);
    } else {
      Serial.print("failed, rc=");
      Serial.print(client.connected());

  // Gives the mqtt client cycles to process
  client.loop();

  checkForConfig(false);
  
  // Gives the handlers cycles to process their on-going tasks
  for(int i = 0 ; i < handlersCount  ; i++) {
    handlers[i]->loop();
