pub fn new(id: u64, accessory_id: u64) -> Self {
        Self {
            id,
            hap_type: HapType::AirQualitySensor,
			current_air_quality: CurrentAirQualityCharacteristic::new(id + 1 + 0, accessory_id),
			nitrogen_dioxide_density: Some(NitrogenDioxideDensityCharacteristic::new(id + 1 + 0 + 1, accessory_id)),
			ozone_density: Some(OzoneDensityCharacteristic::new(id + 1 + 1 + 1, accessory_id)),
			pm10_density: Some(Pm10DensityCharacteristic::new(id + 1 + 2 + 1, accessory_id)),
			pm2_5_density: Some(Pm2_5DensityCharacteristic::new(id + 1 + 3 + 1, accessory_id)),
			sulphur_dioxide_density: Some(SulphurDioxideDensityCharacteristic::new(id + 1 + 4 + 1, accessory_id)),
			volatile_organic_compound_density: Some(VolatileOrganicCompoundDensityCharacteristic::new(id + 1 + 5 + 1, accessory_id)),
			name: Some(NameCharacteristic::new(id + 1 + 6 + 1, accessory_id)),
			status_active: Some(StatusActiveCharacteristic::new(id + 1 + 7 + 1, accessory_id)),
			status_fault: Some(StatusFaultCharacteristic::new(id + 1 + 8 + 1, accessory_id)),
			status_low_battery: Some(StatusLowBatteryCharacteristic::new(id + 1 + 9 + 1, accessory_id)),
			status_tampered: Some(StatusTamperedCharacteristic::new(id + 1 + 10 + 1, accessory_id)),
			..Default::default()
        }
    }
/// Creates a new Air Quality Sensor service.
Creates a new Air Quality Sensor service.
Creates a new Air Quality Sensor service .
pub fn new(id: u64, accessory_id: u64) -> Self {
        Self {
            id,
            hap_type: HapType::AirQualitySensor,
			current_air_quality: CurrentAirQualityCharacteristic::new(id + 1 + 0, accessory_id),
			nitrogen_dioxide_density: Some(NitrogenDioxideDensityCharacteristic::new(id + 1 + 0 + 1, accessory_id)),
			ozone_density: Some(OzoneDensityCharacteristic::new(id + 1 + 1 + 1, accessory_id)),
			pm10_density: Some(Pm10DensityCharacteristic::new(id + 1 + 2 + 1, accessory_id)),
			pm2_5_density: Some(Pm2_5DensityCharacteristic::new(id + 1 + 3 + 1, accessory_id)),
			sulphur_dioxide_density: Some(SulphurDioxideDensityCharacteristic::new(id + 1 + 4 + 1, accessory_id)),
			volatile_organic_compound_density: Some(VolatileOrganicCompoundDensityCharacteristic::new(id + 1 + 5 + 1, accessory_id)),
			name: Some(NameCharacteristic::new(id + 1 + 6 + 1, accessory_id)),
			status_active: Some(StatusActiveCharacteristic::new(id + 1 + 7 + 1, accessory_id)),
			status_fault: Some(StatusFaultCharacteristic::new(id + 1 + 8 + 1, accessory_id)),
			status_low_battery: Some(StatusLowBatteryCharacteristic::new(id + 1 + 9 + 1, accessory_id)),
			status_tampered: Some(StatusTamperedCharacteristic::new(id + 1 + 10 + 1, accessory_id)),
			..Default::default()
        }
    }
pub fn new ( id : u64 , accessory_id : u64 ) -> Self { Self { id , hap_type : HapType :: AirQualitySensor , current_air_quality : CurrentAirQualityCharacteristic :: new ( id + 1 + 0 , accessory_id ) , nitrogen_dioxide_density : Some ( NitrogenDioxideDensityCharacteristic :: new ( id + 1 + 0 + 1 , accessory_id ) ) , ozone_density : Some ( OzoneDensityCharacteristic :: new ( id + 1 + 1 + 1 , accessory_id ) ) , pm10_density : Some ( Pm10DensityCharacteristic :: new ( id + 1 + 2 + 1 , accessory_id ) ) , pm2_5_density : Some ( Pm2_5DensityCharacteristic :: new ( id + 1 + 3 + 1 , accessory_id ) ) , sulphur_dioxide_density : Some ( SulphurDioxideDensityCharacteristic :: new ( id + 1 + 4 + 1 , accessory_id ) ) , volatile_organic_compound_density : Some ( VolatileOrganicCompoundDensityCharacteristic :: new ( id + 1 + 5 + 1 , accessory_id ) ) , name : Some ( NameCharacteristic :: new ( id + 1 + 6 + 1 , accessory_id ) ) , status_active : Some ( StatusActiveCharacteristic :: new ( id + 1 + 7 + 1 , accessory_id ) ) , status_fault : Some ( StatusFaultCharacteristic :: new ( id + 1 + 8 + 1 , accessory_id ) ) , status_low_battery : Some ( StatusLowBatteryCharacteristic :: new ( id + 1 + 9 + 1 , accessory_id ) ) , status_tampered : Some ( StatusTamperedCharacteristic :: new ( id + 1 + 10 + 1 , accessory_id ) ) , .. Default :: default ( ) } }
Creates a new Air Quality Sensor service.
Creates a new Air Quality Sensor service .
id
u64
accessory_id
u64
id
u64
accessory_id
u64