Kaynağa Gözat

TimerManager interval check

master
gituser 3 hafta önce
ebeveyn
işleme
a13947d6ad
2 değiştirilmiş dosya ile 16 ekleme ve 2 silme
  1. 15
    1
      LEDLamp.ino
  2. 1
    1
      sloeber.ino.cpp

+ 15
- 1
LEDLamp.ino Dosyayı Görüntüle

webServer.handleClient(); webServer.handleClient();
webSocket.loop(); webSocket.loop();


static uint32_t lastNtpCheck = 0;

if (WiFi.status() != WL_CONNECTED) { if (WiFi.status() != WL_CONNECTED) {
Serial.println("WLAN verloren"); Serial.println("WLAN verloren");
WiFi.begin(configManager.getConfig().ssid, configManager.getConfig().pass); WiFi.begin(configManager.getConfig().ssid, configManager.getConfig().pass);
return; return;
} }


//TODO: TimerManager::isNowInTimeInterval()
// uint32_t now = millis();
// if (now - lastNtpCheck >= 5000) {
// lastNtpCheck = now;
// if (timerManager.isNowInTimeInterval()) {
// if (ledMngr.isOn()) {
// ledMngr.off();
// }
// } else {
// if (!ledMngr.isOn()) {
// ledMngr.on();
// }
// }
// }


driveLEDStrip(); driveLEDStrip();
} }

+ 1
- 1
sloeber.ino.cpp Dosyayı Görüntüle

//This is a automatic generated file //This is a automatic generated file
//Please do not modify this file //Please do not modify this file
//If you touch this file your change will be overwritten during the next build //If you touch this file your change will be overwritten during the next build
//This file has been generated on 2026-07-13 20:13:32
//This file has been generated on 2026-07-14 11:10:18


#include "Arduino.h" #include "Arduino.h"
#include "Arduino.h" #include "Arduino.h"

Loading…
İptal
Kaydet