pub fn new(id: u64, accessory_id: u64) -> Self {
        Self {
            id,
            hap_type: HapType::TargetControl,
			active: ActiveCharacteristic::new(id + 1 + 0, accessory_id),
			active_identifier: ActiveIdentifierCharacteristic::new(id + 1 + 1, accessory_id),
			button_event: ButtonEventCharacteristic::new(id + 1 + 2, accessory_id),
			name: Some(NameCharacteristic::new(id + 1 + 0 + 3, accessory_id)),
			..Default::default()
        }
    }
/// Creates a new Target Control service.
Creates a new Target Control service.
Creates a new Target Control service .
pub fn new(id: u64, accessory_id: u64) -> Self {
        Self {
            id,
            hap_type: HapType::TargetControl,
			active: ActiveCharacteristic::new(id + 1 + 0, accessory_id),
			active_identifier: ActiveIdentifierCharacteristic::new(id + 1 + 1, accessory_id),
			button_event: ButtonEventCharacteristic::new(id + 1 + 2, accessory_id),
			name: Some(NameCharacteristic::new(id + 1 + 0 + 3, accessory_id)),
			..Default::default()
        }
    }
pub fn new ( id : u64 , accessory_id : u64 ) -> Self { Self { id , hap_type : HapType :: TargetControl , active : ActiveCharacteristic :: new ( id + 1 + 0 , accessory_id ) , active_identifier : ActiveIdentifierCharacteristic :: new ( id + 1 + 1 , accessory_id ) , button_event : ButtonEventCharacteristic :: new ( id + 1 + 2 , accessory_id ) , name : Some ( NameCharacteristic :: new ( id + 1 + 0 + 3 , accessory_id ) ) , .. Default :: default ( ) } }
Creates a new Target Control service.
Creates a new Target Control service .
id
u64
accessory_id
u64
id
u64
accessory_id
u64