Skip to content
This repository was archived by the owner on Aug 3, 2026. It is now read-only.

Commit e8ca283

Browse files
committed
Updated the ExternalFs example to fetch the pretty-print payload via DocView::asObjectConst()
1 parent e22bcca commit e8ca283

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

examples/ExternalFs/ExternalFs.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ void setup() {
4949
auto findRes = db.findById("settings", createRes.value);
5050
if (findRes.status.ok()) {
5151
Serial.print("Fetched doc: ");
52-
serializeJsonPretty(findRes.value.as<JsonObjectConst>(), Serial);
52+
serializeJsonPretty(findRes.value.asObjectConst(), Serial);
5353
Serial.println();
5454
} else {
5555
Serial.printf("Lookup failed: %s\n", findRes.status.message);

src/esp_jsondb/utils/dbTypes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ struct SyncConfig {
3131
bool initFileSystem = true;
3232
bool formatOnFail = true;
3333
uint8_t maxOpenFiles = 10;
34-
const char *partitionLabel = nullptr;
34+
const char *partitionLabel = "spiffs";
3535
};
3636

3737
enum class DBEventType : uint8_t {

0 commit comments

Comments
 (0)