Expand description
This crate provides functionality to read LwM2M object specification files and use the contained information in an application. It also provides some functions to query the loaded specifications.
let mut d = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
d.push("tests/spec_files");
let registry = Registry::init(vec![d]).await.unwrap();
assert!(registry.has_object_id(3, Version::new(1, 1)));Structs§
- LwM2M
Spec - Represents a LwM2M object specification file.
- Object
- Represents a LwM2M object as defined in a specification file
- Parse
Version Error - Error indicating that the version in a spec file could not be parsed.
- Registry
- The registry reads spec files from a list of given directories and parses all found specification files. The retrieved data can then be queried for various information.
- Resource
- A resource within an LwM2M object.
- Version
- This can represent a LwM2M version or an object version.
Enums§
- Operations
- Operations that are allowed on a resource.
- Resource
Type - Indicates the type of resource.