       net.sendResponse(PSTR("ERROR: 1-3600 expected."));
     }
   } else {
-    net.sendResponse(PSTR("Unrecognized command"));
+    net.sendResponse("Unrecognized command");
   }
 }
 

// Write to the configuration when we receive new parameters
void processSetCommands()
{
  if (net.assertCommandStarts(PSTR("setAlertBatteryVoltage:"), buf)) {
    unsigned int tmp = strtol(buf, NULL, 10);
    if (tmp > 9000 && tmp < 15000) {
      conf.alertBatteryVoltage = tmp;
      saveConfig();
      net.sendResponse(PSTR("OK"));
    } else {
      net.sendResponse(PSTR("ERROR"));
    }
  } else if (net.assertCommandStarts(PSTR("setAlertWaterLevel:"), buf)) {
    int tmp = strtol(buf, NULL, 10);
    if (tmp > -100 && tmp < 100) {
      conf.alertWaterLevel = tmp;
      saveConfig();
      net.sendResponse(PSTR("OK"));
    } else {
      net.sendResponse(PSTR("ERROR"));
    }
  } else if (net.assertCommandStarts(PSTR("setBaudRate:"), buf)) {
    long tmp = strtol(buf, NULL, 10);
    // Supported: 9600, 14400, 19200, 28800, 38400, 57600, or 115200
    if (tmp == 9600 ||

    ) {
      conf.baudRate = tmp;
      saveConfig();
      net.sendResponse("OK");
      Serial.end();
      Serial.begin(tmp);
    } else {
      net.sendResponse("ERROR");
    }
  } else if (net.assertCommandStarts("setAcPumpOnThreshold:", buf)) {
    int tmp = strtol(buf, NULL, 10);
    if (tmp > 0 && tmp < 1025) {
      conf.acPumpOnThreshold = tmp;
      saveConfig();
      net.sendResponse("OK");
    } else {
      net.sendResponse("ERROR");
    }
  } else if (net.assertCommandStarts("setAlertPressureLevel:", buf)) {
    int tmp = strtol(buf, NULL, 10);
    if (tmp > 0 && tmp < 1025) {
      conf.alertPressureLevel = tmp;
      saveConfig();
      net.sendResponse("OK");
    } else {
      net.sendResponse("ERROR");
    }
  } else if (net.assertCommandStarts("setAcPumpOnTimeWarning:", buf)) {
    int tmp = strtol(buf, NULL, 10);
    if (tmp > 0 && tmp < 30000) {
      conf.acPumpOnTimeWarning = tmp;
      saveConfig();
      net.sendResponse("OK");
    } else {
      net.sendResponse("ERROR");
    }
  } else if (net.assertCommandStarts("setSelftestTimeBetween:", buf)) {
    long tmp = strtol(buf, NULL, 10);
    if (tmp > 0 && tmp < 1000000L) {
      conf.selftestTimeBetween = tmp;
      saveConfig();
      net.sendResponse("OK");
    } else {
      net.sendResponse("ERROR");
    }
  } else if (net.assertCommandStarts("setSelfTestTimeLimit:", buf)) {
    int tmp = strtol(buf, NULL, 10);
    // More than 6 seconds, as we're checking that DC pump is on at 6 second mark.
    if (tmp > 6 && tmp < 200) {
      conf.selfTestTimeLimit = tmp;
      saveConfig();
      net.sendResponse("OK");
    } else {
      net.sendResponse("ERROR");
    }
  } else if (net.assertCommandStarts("setSelfTestMinDepth:", buf)) {
    int tmp = strtol(buf, NULL, 10);
    if (tmp > -100 && tmp < 100) {
      conf.selfTestMinDepth = tmp;
      saveConfig();
      net.sendResponse("OK");
    } else {
      net.sendResponse("ERROR");
    }
  } else if (net.assertCommandStarts("setSelfTestDepthDiff:", buf)) {
    int tmp = strtol(buf, NULL, 10);
    if (tmp > 0 && tmp < 100) {
      conf.selfTestDepthDiff = tmp;
      saveConfig();
      net.sendResponse("OK");
    } else {
      net.sendResponse("ERROR");
    }
  } else if (net.assertCommandStarts("setDepthMeasureTime:", buf)) {
    int tmp = strtol(buf, NULL, 10);
    if (tmp >= 0 && tmp < 120) {
      conf.depthMeasureTime = tmp;
      saveConfig();
      net.sendResponse("OK");
    } else {
      net.sendResponse("ERROR");
    }
  } else if (net.assertCommandStarts("setBuzzerEnabled:", buf)) {
    int tmp = strtol(buf, NULL, 10);
    if (tmp == 1 || tmp == 0) {
      conf.buzzerEnabled = tmp;
      saveConfig();
      net.sendResponse("OK");
    } else {
      net.sendResponse("ERROR");
    }
  } else if (net.assertCommandStarts("setZeroPressure:", buf)) {
    int tmp = strtol(buf, NULL, 10);
    if (tmp >= 0 && tmp < 1023) {
      conf.zeroPressure = tmp;
      saveConfig();
      net.sendResponse("OK");
    } else {
      net.sendResponse("ERROR");
    }
  } else if (net.assertCommandStarts("setPointsPerCm:", buf)) {
    int tmp = strtol(buf, NULL, 10);
    if (tmp >= -1024 && tmp < 1024) {
      conf.pointsPerCm = tmp;
      saveConfig();
      net.sendResponse("OK");
    } else {
      net.sendResponse("ERROR");
    }
  } else if (net.assertCommandStarts(PSTR("setDcPumpOnTimeWarning:"), buf)) {
    int tmp = strtol(buf, NULL, 10);
