pub struct Device {Show 24 fields
pub ieee: Ieee,
pub nwk: NodeId,
pub name: Option<String>,
pub node_descriptor: Option<NodeDescriptor>,
pub endpoints: Vec<SimpleDescriptor>,
pub manufacturer: Option<String>,
pub model: Option<String>,
pub power_source: Option<u8>,
pub sw_build_id: Option<String>,
pub date_code: Option<String>,
pub zcl_version: Option<u8>,
pub stack_version: Option<u8>,
pub hw_version: Option<u8>,
pub app_version: Option<u8>,
pub interview: Interview,
pub reporting: Vec<ConfiguredReport>,
pub ias_zone_type: Option<u16>,
pub ias_zone_id: Option<u8>,
pub unique_link_key: bool,
pub parent: Option<NodeId>,
pub joined_unix: u64,
pub last_seen_unix: Option<u64>,
pub last_lqi: Option<u8>,
pub last_rssi: Option<i8>,
}Expand description
A device on the network.
Fields§
§ieee: IeeeIEEE address.
nwk: NodeIdCurrent network address.
name: Option<String>A name a person gave it.
node_descriptor: Option<NodeDescriptor>The node descriptor.
endpoints: Vec<SimpleDescriptor>Endpoints, from the simple descriptors.
manufacturer: Option<String>Basic cluster: manufacturer name.
model: Option<String>Basic cluster: model identifier.
power_source: Option<u8>Basic cluster: power source.
sw_build_id: Option<String>Basic cluster: software build id.
date_code: Option<String>Basic cluster: date code.
zcl_version: Option<u8>Basic cluster: ZCL version.
stack_version: Option<u8>Basic cluster: stack version.
hw_version: Option<u8>Basic cluster: hardware version.
app_version: Option<u8>Basic cluster: application version.
interview: InterviewThe interview’s progress.
reporting: Vec<ConfiguredReport>Reporting the host configured.
ias_zone_type: Option<u16>The IAS zone type (contact, motion, water leak…), read at enrollment.
ias_zone_id: Option<u8>The IAS zone id the host enrolled it with.
unique_link_key: boolIt completed Zigbee 3.0 trust center link key exchange.
parent: Option<NodeId>Its parent when it joined.
joined_unix: u64When it joined, seconds since the Unix epoch.
last_seen_unix: Option<u64>Last time anything arrived from it (not persisted, so receiving a message never writes to flash).
last_lqi: Option<u8>Link quality of the last message’s last hop (not persisted).
last_rssi: Option<i8>Signal strength of the last message’s last hop (not persisted).
Implementations§
Source§impl Device
impl Device
Sourcepub fn is_sleepy(&self) -> bool
pub fn is_sleepy(&self) -> bool
The device’s receiver is off when idle (a sleepy end device), so requests wait at its parent until it polls.
Sourcepub fn endpoint_with(&self, cluster: u16) -> Option<&SimpleDescriptor>
pub fn endpoint_with(&self, cluster: u16) -> Option<&SimpleDescriptor>
The endpoint that has a cluster as a server, if any.
Sourcepub fn profile_of(&self, endpoint: u8) -> u16
pub fn profile_of(&self, endpoint: u8) -> u16
The application profile of an endpoint (Home Automation if unknown).