V 1.40 funtioniert soweit, Temperatur zu hoch wg. Aufwärmung

This commit is contained in:
rxf
2024-08-22 07:53:34 +02:00
parent eb1a102120
commit 8de24db46d
8 changed files with 44 additions and 9 deletions

View File

@@ -22,7 +22,7 @@
#include <TFT_eSPI.h>
#include "Weifi.h"
#include "weifi.h"
#include "mqtt.h"
#include "handlebme280.h"
#include "grafik.h"
@@ -49,6 +49,13 @@ void setUpdatetime(int time) {
updateTime = time * 1000;
}
char * getChipID(void) {
static char chipid[20];
uint64_t chipid64 = ESP.getEfuseMac();
sprintf(chipid, "%04X%08X", (uint16_t)(chipid64 >> 32), (uint32_t)chipid64);
return chipid;
}
void setup() {
setlocale(LC_ALL, "de_DE");
String LVGL_Arduino = String("LVGL Library Version: ") + lv_version_major() + "." + lv_version_minor() + "." + lv_version_patch();
@@ -107,7 +114,7 @@ void loop() {
if (millis() - bmeReadtimer > bmeReadTime) {
bmeReadtimer = millis();
bmedata = readBME280();
doPublish(bmedata.temp+arcTemp.value_offset, bmedata.hum+arcHum.value_offset);
doPublish(bmedata.temp+arcTemp.value_offset, bmedata.hum+arcHum.value_offset, bmedata.temp, bmedata.hum);
}
if (millis() - updatetimer > updateTime) {
updatetimer = millis();
@@ -122,6 +129,10 @@ void loop() {
}
client.loop();
server.handleClient();
ElegantOTA.loop();
lv_task_handler(); // let the GUI do its work
lv_tick_inc(5); // tell LVGL how much time has passed
delay(5); // let this time pass