|
|
@ -109,7 +109,7 @@ void notFound(AsyncWebServerRequest *request) {
|
|
|
|
|
|
|
|
|
|
|
|
void readSensor() {
|
|
|
|
void readSensor() {
|
|
|
|
// read the actual temperature after it's been converted
|
|
|
|
// read the actual temperature after it's been converted
|
|
|
|
temperature = sensor.getTempCByIndex(0);
|
|
|
|
temperature = sensor.getTempCByIndex(0) + CORRECTION;
|
|
|
|
// do what you need with the temperature here
|
|
|
|
// do what you need with the temperature here
|
|
|
|
metrics = "temp ";
|
|
|
|
metrics = "temp ";
|
|
|
|
metrics += temperature;
|
|
|
|
metrics += temperature;
|
|
|
|