1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//! # iot-core
//!
//! Foundation crate for the `iot-protocols` SDK. Defines the data model
//! that every protocol implementation in the workspace agrees on:
//!
//! - [`thing`] — Eclipse-Ditto-style `Thing` / `Feature` / `Value` digital twin.
//! - [`path`] — `PropertyPath`, the protocol-agnostic address of a single value.
//! - [`binding`] — `ProtocolBinding` / `ThingMapping`, the bridge that maps a
//! `PropertyPath` onto a Modbus register, an MQTT topic, a CoAP URI, or an
//! OPC UA NodeId.
//! - [`error`] — the unified [`error::IotError`] every public API returns.
//! - [`client`] — the [`client::IotClient`] async trait every protocol crate
//! implements alongside its native API.
//!
//! ## Feature flags
//!
//! | Feature | Adds | Default |
//! |-----------|-----------------------------------------|:-------:|
//! | `std` | `std::error::Error` impls, hashing | ✓ |
//! | `alloc` | `Thing`, `Vec`, dynamic `BTreeMap` maps | ✓ |
//! | `serde` | `serde::{Serialize,Deserialize}` derives| |
//! | `validate`| JSON-Schema validation of `Thing` | |
//!
//! With only `alloc` (no `std`) every public type continues to work, which is
//! the configuration MCU targets compile.
extern crate alloc;
// Convenience re-exports — keeps user-facing imports terse.
pub use ;
pub use IotClient;
pub use PropertySample;
pub use ;
pub use PropertyPath;
pub use ;
pub use Value;