use crate::ember::{NULL_NODE_ID, NodeId};
crate::frame::parameters::frame!(
0x002F,
{ index: u8 },
impl {
impl Command {
#[must_use]
pub const fn new(index: u8) -> Self {
Self { index }
}
}
},
{ node_id: NodeId } => Binding(binding)::GetRemoteNodeId,
impl {
impl Response {
#[must_use]
pub const fn node_id(&self) -> Option<NodeId> {
if self.node_id == NULL_NODE_ID {
None
} else {
Some(self.node_id)
}
}
}
}
);