pub fn new(id: u64, accessory_id: u64) -> Self {
        Self {
            id,
            hap_type: HapType::Battery,
			status_low_battery: StatusLowBatteryCharacteristic::new(id + 1 + 0, accessory_id),
			battery_level: Some(BatteryLevelCharacteristic::new(id + 1 + 0 + 1, accessory_id)),
			charging_state: Some(ChargingStateCharacteristic::new(id + 1 + 1 + 1, accessory_id)),
			name: Some(NameCharacteristic::new(id + 1 + 2 + 1, accessory_id)),
			..Default::default()
        }
    }
/// Creates a new Battery service.
Creates a new Battery service.
Creates a new Battery service .
pub fn new(id: u64, accessory_id: u64) -> Self {
        Self {
            id,
            hap_type: HapType::Battery,
			status_low_battery: StatusLowBatteryCharacteristic::new(id + 1 + 0, accessory_id),
			battery_level: Some(BatteryLevelCharacteristic::new(id + 1 + 0 + 1, accessory_id)),
			charging_state: Some(ChargingStateCharacteristic::new(id + 1 + 1 + 1, accessory_id)),
			name: Some(NameCharacteristic::new(id + 1 + 2 + 1, accessory_id)),
			..Default::default()
        }
    }
pub fn new ( id : u64 , accessory_id : u64 ) -> Self { Self { id , hap_type : HapType :: Battery , status_low_battery : StatusLowBatteryCharacteristic :: new ( id + 1 + 0 , accessory_id ) , battery_level : Some ( BatteryLevelCharacteristic :: new ( id + 1 + 0 + 1 , accessory_id ) ) , charging_state : Some ( ChargingStateCharacteristic :: new ( id + 1 + 1 + 1 , accessory_id ) ) , name : Some ( NameCharacteristic :: new ( id + 1 + 2 + 1 , accessory_id ) ) , .. Default :: default ( ) } }
Creates a new Battery service.
Creates a new Battery service .
id
u64
accessory_id
u64
id
u64
accessory_id
u64