     byte host[4];
     char *p = strtok(inputBytes, ".");  
     for (int i = 0; i < 4; i++) {
-        host[i] = atoi(p);
-        p = strtok(NULL, ".");
+      host[i] = atoi(p);
+      p = strtok(NULL, ".");
     }
     IPAddress hostIP = IPAddress(host);
     DBG Serial.print("New host ip address: ");

void loop() {
  // If we're not connected, and a full period has passed since
  // our connection, then connect again and send data.
  if(!client.connected() && (millis() - lastConnectionTime > settings.period)) {
    sendData();
  } else {
    client.stop();
  }
  // Parse incoming commands
  serParseCommand();
  // Listen for incoming requests

      } 
      else if (i == 1) {
        cmd = chr;
      } 
      else{
        inputBytes[i-2] = chr;
      }
