quartiq / miniconf

Rust serialize/deserialize/access reflection for trees (no_std, no alloc)
MIT License
23 stars 2 forks source link

Adding mechanism to query path structure and active values #124

Closed ryan-summers closed 1 year ago

ryan-summers commented 1 year ago

This PR fixes #123 by adding two command: <prefix>/list and a publication to the path tree.

When a response topic is provided, list publishes all of the settings paths sequentially to the provided topic. To indicate completion, an empty message is sent at the end.

When a query is requested, the payload is expected to be a Miniconf path. In this case, the settings structure queries the provided path and the value of the path is published to the provided response topic.