     theBuffer.close();
     return;
   }
-  int bufferLength = theBuffer.size();
+  uint bufferLength = theBuffer.size();
   if ( serverClients[currentClient].write(theBuffer,2920) <  bufferLength){
     // failed to send all file
   }

  webSocket.onEvent(webSocketEvent);
}

void initHardware()
{
  Serial.begin(2000000);
  Serial.println(F("\r\n"));
  Serial.println(F("            FHTbot Serial Connected\r\n"));

  nextBoredBotEvent = millis() + boredBotTimeout;
}

void loop(){
  // time dependant functions here
  checkBoredBot();
  checkAutoMode();
