Skip to content

v11.0.1

Choose a tag to compare

@mathieucarbou mathieucarbou released this 19 Nov 10:57
· 51 commits to main since this release
8c26a92

💡New features

  • Native storage API: data is no more stored in string but is using the underlying storage api to store data in their native type form. This also consequently reduces the heap used to cache the data since they are no more cached as strings, and also speed up access to the values since no more string to type conversion has to be done

⚠️ Breaking changes

  • With the switch to a native API, the whole API was re-organized in namespace config and with the use of templates. For an existing app, this is a substantial change in API, plus the backend format to store the data was also changed to a native format.

So to facilitate the move to this new API, a compatibility layer has been introduced, which is replicating the old API and way to store the data, but uses the new API behind.

#include <MycilaConfig.h>
#include <MycilaConfigV10.h>
#include <MycilaConfigStorageNVS.h>

Mycila::config::NVS storage; // NVS storage
Mycila::config::Config configNew(storage); // the new config system
Mycila::config::ConfigV10 config(configNew); // wrapper that is emulating the v10 API and way to store the data in strings


Full Changelog: v10.0.0...v11.0.1