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
56
//! wireband-edge — Lightweight Wire.Band client for IoT gateway hardware.
//!
//! # Architecture
//!
//! ```text
//! [MQTT broker] ──► MqttConnector ──► WireBandClient ──► Wire.Band backend
//! (or serial/BLE) classify+frame ring buffer /iot/v1/ingest/batch
//! delta filter flush loop
//! retry+backoff
//! ```
//!
//! # Minimal example
//!
//! ```no_run
//! use wireband_edge::client::{WireBandClient, ClientConfig};
//!
//! #[cfg(feature = "mqtt")]
//! use wireband_edge::mqtt::MqttConnector;
//!
//! #[tokio::main]
//! async fn main() {
//! let client = WireBandClient::new(ClientConfig {
//! backend_url: "http://localhost:8000".into(),
//! device_id: "factory-rpi4".into(),
//! ..Default::default()
//! });
//! client.start();
//!
//! #[cfg(feature = "mqtt")]
//! MqttConnector::new("mqtt://localhost:1883", 0.02)
//! .run(client, vec!["sensors/#".into()])
//! .await
//! .unwrap();
//! }
//! ```
pub use ;
pub use ;
pub use ;