Add light status API endpoint, UI update

This commit is contained in:
Djuri 2023-11-17 22:09:28 +01:00
parent 8d94cb4090
commit 909500fe2e
5 changed files with 52 additions and 7 deletions

View file

@ -224,6 +224,14 @@ std::vector<std::string> getScreenNameMap()
void setupHardware()
{
if (!LittleFS.begin(true))
{
Serial.println(F("An Error has occurred while mounting LittleFS"));
}
if(!LittleFS.open("/index.html", "r")) {
Serial.println("Error loading WebUI");
}
setupLeds();
WiFi.setHostname(getMyHostname().c_str());