Skip to content

Simple C++ serialization library for application configurations, with JSON and NVS support.

License

Notifications You must be signed in to change notification settings

mdvorak-iot/esp-config-state

Repository files navigation

esp-config-state

platformio build

Simple C++ serialization library for application configurations, with JSON and NVS support.

Uses RapidJSON library for serialization.

RapidJSON dependency

Library must be provided by a parent project.

These definitions are mandatory, otherwise rapidjson allocates whole 64KB on heap, when it needs only few hundred bytes:

-D RAPIDJSON_HAS_STDSTRING=1 
-D RAPIDJSON_ALLOCATOR_DEFAULT_CHUNK_CAPACITY=1024

For CMake, set them at ideally at library import, via

target_compile_definitions(rapidjson INTERFACE RAPIDJSON_HAS_STDSTRING=1 RAPIDJSON_ALLOCATOR_DEFAULT_CHUNK_CAPACITY=1024)

About

Simple C++ serialization library for application configurations, with JSON and NVS support.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published