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
//! Zigbee transceiver API.
//!
//! This library provides a fully abstracted interface to expose an interface to communicate with
//! a Zigbee transceiver regardless of the underlying hardware.
//!
//! The application supplies a `tokio::sync::mpsc::Sender<Event>` at startup to receive coordinator
//! [`Event`] values. Discovery, binding, address resolution, and persistence are application-owned
//! workflows built from traits such as [`Node`], [`Endpoints`], [`Binding`],
//! [`AddressTranslation`], [`Zcl`], and [`Zdp`].
//!
//! The hardware NCP is responsible for providing its complete local endpoint descriptors through
//! [`zb_hw::Ncp::get_endpoints`]. The coordinator queries those descriptors when serving ZDP match
//! requests and exposes them through [`LocalNode::get_endpoints`]; they are no longer passed to
//! [`Coordinator::start`].
//!
//! [`Driver`] is re-exported from `zb_hw`, allowing hardware integrations to implement the driver
//! contract through this crate's public API.
//!
//! ZCL and ZDP sends use deferred response futures. The first await queues an operation and returns
//! either [`TransmissionResponse`] or a protocol-specific [`ZclResponse`] or [`ZdpResponse`]. Await
//! that returned future to observe hardware completion and, for communication requests, receive the
//! converted protocol response. All of these futures report failures through the coordinator's
//! [`Error`] type.
use env_item;
pub use Driver;
pub use ;
pub use Coordinator;
pub use ;
pub use ;
pub use ;
/// The delay between retries, in seconds.
const MPSC_CHANNEL_SIZE: usize = 128;