pub struct DeviceConfig {
pub device_id: String,
pub wifi_mac: String,
pub ssid: String,
pub ip: String,
pub netmask: String,
pub gateway: String,
pub firmware_version: String,
pub timezone: String,
pub display: String,
pub led: LedConfig,
pub voc_feature_set: u32,
}Expand description
Represents a Awair device’s active configuration, as returned from the Local API.
Fields§
§device_id: StringThe Awair device’s ID.
NOTE: The Local API refers to this as device_uuid, but it isn’t
formatted as a normal UUID and there’s no indication that it’s
intended to be universally unique.
wifi_mac: StringThe MAC address of the WiFi network that the Awair is connected to.
ssid: StringThe SSID of the WiFi network.
ip: StringThe Awair’s IP address on the network.
netmask: StringThe network’s mask, in dotted quad format.
gateway: StringThe network’s gateway IP address.
firmware_version: StringThe Awair’s active firmware version.
timezone: StringThe Awair’s configured timezone, as a TZ database name.
display: StringThe Awair’s current display mode.
led: LedConfigThe Awair’s current LED configuration.
voc_feature_set: u32(Presumably) the TVOC sensor’s feature set (unknown format).
Trait Implementations§
Source§impl Debug for DeviceConfig
impl Debug for DeviceConfig
Source§impl<'de> Deserialize<'de> for DeviceConfig
impl<'de> Deserialize<'de> for DeviceConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DeviceConfig
impl RefUnwindSafe for DeviceConfig
impl Send for DeviceConfig
impl Sync for DeviceConfig
impl Unpin for DeviceConfig
impl UnwindSafe for DeviceConfig
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