pub enum Command {
Show 40 variants
Version {
desired: u8,
},
GetConfigurationValue {
config_id: u8,
},
SetConfigurationValue {
config_id: u8,
value: u16,
},
AddEndpoint {
endpoint: u8,
profile_id: u16,
device_id: u16,
device_version: u8,
input_clusters: Vec<u16>,
output_clusters: Vec<u16>,
},
SetPolicy {
policy_id: u8,
decision: u8,
},
GetValue {
value_id: u8,
},
SetValue {
value_id: u8,
value: Vec<u8>,
},
SetManufacturerCode {
code: u16,
},
NetworkInit {
bitmask: u16,
},
NetworkState,
FormNetwork {
parameters: NetworkParameters,
},
LeaveNetwork {
options: u8,
},
PermitJoining {
duration: u8,
},
GetNetworkParameters,
GetEui64,
GetNodeId,
SetInitialSecurityState {
state: InitialSecurityState,
},
ExportKey {
context: SecManContext,
},
GetNetworkKeyInfo,
ExportLinkKeyByIndex {
index: u8,
},
ImportLinkKey {
index: u8,
ieee: Ieee,
key: Key,
},
EraseKeyTableEntry {
index: u8,
},
ImportTransientKey {
ieee: Ieee,
key: Key,
},
ClearTransientLinkKeys,
ClearKeyTable,
GetKey {
key_type: u8,
},
GetKeyTableEntry {
index: u8,
},
SetKeyTableEntry {
index: u8,
ieee: Ieee,
link_key: bool,
key: Key,
},
AddTransientLinkKey {
ieee: Ieee,
key: Key,
},
SendUnicast {
kind: u8,
destination: NodeId,
aps: ApsFrame,
tag: u16,
payload: Vec<u8>,
},
SendBroadcast {
alias: NodeId,
destination: NodeId,
nwk_sequence: u8,
aps: ApsFrame,
radius: u8,
tag: u16,
payload: Vec<u8>,
},
SetConcentrator {
on: bool,
kind: u16,
min_time: u16,
max_time: u16,
route_error_threshold: u8,
delivery_failure_threshold: u8,
max_hops: u8,
},
SetSourceRouteDiscoveryMode {
mode: u8,
},
GetMfgToken {
token_id: u8,
},
SetMfgToken {
token_id: u8,
data: Vec<u8>,
},
StartScan {
scan_type: u8,
channel_mask: u32,
duration: u8,
},
LookupEui64ByNodeId {
node_id: NodeId,
},
SetRadioPower {
power: i8,
},
Echo {
data: Vec<u8>,
},
Nop,
}Expand description
A command from the host.
Variants§
Version
Negotiate the protocol version.
GetConfigurationValue
SetConfigurationValue
AddEndpoint
Fields
SetPolicy
GetValue
SetValue
SetManufacturerCode
NetworkInit
NetworkState
FormNetwork
Fields
§
parameters: NetworkParametersLeaveNetwork
PermitJoining
GetNetworkParameters
GetEui64
GetNodeId
SetInitialSecurityState
Fields
§
state: InitialSecurityStateExportKey
Fields
§
context: SecManContextGetNetworkKeyInfo
ExportLinkKeyByIndex
ImportLinkKey
EraseKeyTableEntry
ImportTransientKey
ClearTransientLinkKeys
ClearKeyTable
GetKey
Before protocol 13: read a key by crate::ids::ember_key_type.
GetKeyTableEntry
Before protocol 13: read a key table entry.
SetKeyTableEntry
Before protocol 13: write a key table entry.
AddTransientLinkKey
Before protocol 13: a temporary key for one joining device.
SendUnicast
SendBroadcast
Fields
SetConcentrator
Fields
SetSourceRouteDiscoveryMode
GetMfgToken
SetMfgToken
StartScan
LookupEui64ByNodeId
SetRadioPower
Echo
Nop
Implementations§
Trait Implementations§
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more