Case: added text - on case front and id on lid
This commit is contained in:
@@ -73,7 +73,7 @@ bool firmwareUpdate()
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
void sessionManagerSetup()
|
||||
{
|
||||
Preferences scalePrefs;
|
||||
@@ -202,7 +202,7 @@ void httpSetup(SessionManager<SessionT> *sessionManager, WifiManager *wifiManage
|
||||
JsonObject device = json.createNestedObject("device");
|
||||
device["mac"] = baseMacChr;
|
||||
device["chip"] = modelString;
|
||||
device["unique_name"] = "swimtracker" + getIdSuffix();
|
||||
device["unique_name"] = "swimtracker" + getIdSuffix();
|
||||
}
|
||||
char jsonText[512];
|
||||
auto bytesWritten = serializeJson(json, jsonText);
|
||||
@@ -440,13 +440,17 @@ void setup()
|
||||
}
|
||||
|
||||
// File system
|
||||
auto millisBeforeSpiffsInit = millis();
|
||||
bool spiffsResult = SPIFFS.begin(true);
|
||||
if (!spiffsResult)
|
||||
Serial.println("Failed to mount/format SPIFFS file system");
|
||||
|
||||
ESP_ERROR_CHECK(esp_event_loop_create_default());
|
||||
|
||||
auto spiffsSetupTimeSecs = (millis() - millisBeforeSpiffsInit) / 1000;
|
||||
|
||||
userStorage.init();
|
||||
Serial.printf("Spiffs size: %d MB, setup time %d secs\n", portablefs::totalBytes() / 1024 / 1024, spiffsSetupTimeSecs);
|
||||
|
||||
// WiFi
|
||||
Preferences prefs;
|
||||
|
||||
Reference in New Issue
Block a user