miniconf_coap
miniconf_coap exposes selected miniconf trees as
CoAP resources. It is sessionless: applications keep ownership of CoAP sockets,
message IDs, tokens, routing, retransmission, unrelated resources, and the
settings tree unless they opt into the coap-handler adapter.
Routes
JsonValueRoute::json("/settings")serves leaf values as JSON.CborValueRoute::cbor("/settings")serves leaf values as CBOR when thecborfeature is enabled.SchemaRoute::new("/schema", Settings::SCHEMA)serves a JSON manifest at/schemaand newline-delimited compact schema pages at/schema/{page}.
The cooperative routes borrow settings for each request:
#
#
coap-handler
With the coap-handler feature, MiniconfCoapHandler and SchemaCoapHandler
adapt the routes to the coap-handler ecosystem. MiniconfCoapHandler owns its
settings because coap-handler::Handler has no per-request application context;
use ValueRoute directly when other components need cooperative access to the
same settings tree.
Features
json-core(default): JSON value routes and compact schema serving.cbor: CBOR value routes and concise problem details.coap-handler: adapters and CoRE Link Format discovery records.