MCPcopy Create free account
hub / github.com/bmorcelli/Launcher / openNamespace

Function openNamespace

src/settings.cpp:42–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42std::unique_ptr<nvs::NVSHandle> openNamespace(const char *ns, nvs_open_mode_t mode, esp_err_t &err) {
43 auto handle = nvs::open_nvs_handle(ns, mode, &err);
44 if (err != ESP_OK) {
45 log_i("openNamespace(%s) failed: %d", ns, err);
46 return nullptr;
47 }
48 return handle;
49}
50
51JsonArray ensureWifiListInternal() {
52 JsonObject setting = ensureSettingsRoot();

Callers 7

saveIntoNVSFunction · 0.70
saveSessionTokenFunction · 0.70
saveWifiIntoNVSFunction · 0.70
loadSessionTokenFunction · 0.70
loadTouchCalibrationFunction · 0.70
saveTouchCalibrationFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected