         !client[clientCounter].connected())
     {
       client[clientCounter] = server.available();
-      Serial.printf("Client(%d) has connected.\n", clientCounter);
+      //Serial.printf("Client(%d) has connected.\n", clientCounter);
+      DebugPrint("Client("); 
+      DebugPrint(String(clientCounter));
+      DebugPrintln(") has connected.");
       connectionlist[clientCounter] = true;
     }
     else
     {
-      Serial.printf("ERROR: Client(%d) still connected.\n", clientCounter);
-      Serial.println("Trying next client.");
+      //Serial.printf("ERROR: Client(%d) still connected.\n", clientCounter);
+      DebugPrint("ERROR: Client(");
+      DebugPrint(String(clientCounter));
+      DebugPrintln(") still connected.");
+      DebugPrintln("Trying next client.");
     }
     clientCounter++;
     clientCounter = clientCounter % clientsize;

      connectionlist[j] = client[j].connected();
      if (!connectionlist[j])
      {
        Serial.printf("Client(%d) has disconnected.\n", j);
      }
    }
    useCommand(commandline);

#include <SoftwareSerial.h>
#include <Rp6.h>

#define DEBUG 1

enum class State { Forward, Backward, Left, Right, Startup };
State state = State::Startup;
SoftwareSerial Comport(D7, D8);

int robotSpeed = 0;
float invertedRotateSpeed = 0; // can be 0 to 1, the higher it is, the slower the robot rotates

// Create an instance of the server
// specify the port to listen on as an argument
WiFiServer server(80);
