Add light status API endpoint, UI update
This commit is contained in:
parent
8d94cb4090
commit
909500fe2e
5 changed files with 52 additions and 7 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue