pub struct NodeSpec {
pub name: String,
pub listening: bool,
pub security: Security,
pub smartstart: bool,
pub long_range: bool,
pub generic: u8,
pub specific: u8,
pub ccs: Vec<(u16, u8)>,
pub secure_only: Vec<u16>,
pub product_id: u16,
pub private_key: [u8; 32],
}Expand description
What a simulated node is.
Fields§
§name: StringA name to address it by.
listening: boolAlways listening, or sleeping.
security: SecuritySecurity.
smartstart: boolJoins by SmartStart instead of a button press.
long_range: boolA Z-Wave Long Range node (SmartStart only, 16-bit node id).
generic: u8Generic device class.
specific: u8Specific device class.
ccs: Vec<(u16, u8)>Command classes and their versions.
secure_only: Vec<u16>Command classes only available with security (subset of ccs).
product_id: u16Product id reported by Manufacturer Specific.
private_key: [u8; 32]The node’s private key (S2), fixed so tests can derive its DSK.
Implementations§
Source§impl NodeSpec
impl NodeSpec
Sourcepub fn sleeping_sensor(name: &str) -> Self
pub fn sleeping_sensor(name: &str) -> Self
A battery multisensor that sleeps between wake-ups, with S0.
Sourcepub fn s2_sensor(name: &str, requested: Vec<SecurityClass>) -> Self
pub fn s2_sensor(name: &str, requested: Vec<SecurityClass>) -> Self
A mains-powered multisensor (temperature, humidity, motion) with S2.
Sourcepub fn smartstart_sensor(name: &str) -> Self
pub fn smartstart_sensor(name: &str) -> Self
An S2 node that joins by SmartStart.
Sourcepub fn long_range_sensor(name: &str) -> Self
pub fn long_range_sensor(name: &str) -> Self
A Long Range sensor that joins by SmartStart with S2 Authenticated.
Sourcepub fn nif(&self) -> NodeInfo
pub fn nif(&self) -> NodeInfo
The node information frame: insecure command classes only, as nodes send it.
Sourcepub fn protocol_info(&self) -> NodeProtocolInfo
pub fn protocol_info(&self) -> NodeProtocolInfo
Protocol information as the controller reports it.