 
   // read persistent config
   SPIFFS.begin();
-  svrAddr = getSvrAddr();
-  analogSensor = getAnalogSensor();
+  svrAddr = getSvrAddrP();
+  analogSensor = getAnalogSensorP();
 
   // start the sensors, the DNS and webserver, etc.
   startPeripherals();

  return;
}
void getAnalog(float* a) {
  if(! GOT_ANALOG_SENSOR) {
    (*a) = 0.0;
  } else if(analogSensor == "analog_mains") {
    (*a) = 1.0;
  } else if(analogSensor == "analog_pressure") {
    (*a) = -1.0;
  }

  return;

      toSend += "<p>...for ";
      toSend += analogSensor;
      toSend += "</p>";
      setAnalogSensorP(analogSensor);
    }
  }

