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
use std::net::Ipv4Addr;
/// Represents a broadlink device core information.
#[derive(Debug, Clone)]
pub struct DeviceInfo {
/// The IP address of this device.
pub address: Ipv4Addr,
/// The MAC address of this device.
pub mac: [u8; 6],
/// The model code of this device.
pub model_code: u16,
/// The friendly model type
pub friendly_model: String,
/// The friendly device type
pub friendly_type: String,
/// The name of the device.
pub name: String,
/// The lock status of the device.
pub is_locked: bool,
/// The authentication ID used for encrypted communication.
pub auth_id: u32,
/// The key used for encrypted communication
pub key: [u8; 16],
}
