pub fn new(id: u64, accessory_id: u64) -> Self {
        Self {
            id,
            hap_type: HapType::StatelessProgrammableSwitch,
			programmable_switch_event: ProgrammableSwitchEventCharacteristic::new(id + 1 + 0, accessory_id),
			name: Some(NameCharacteristic::new(id + 1 + 0 + 1, accessory_id)),
			label_index: Some(LabelIndexCharacteristic::new(id + 1 + 1 + 1, accessory_id)),
			..Default::default()
        }
    }
/// Creates a new Stateless Programmable Switch service.
Creates a new Stateless Programmable Switch service.
Creates a new Stateless Programmable Switch service .
pub fn new(id: u64, accessory_id: u64) -> Self {
        Self {
            id,
            hap_type: HapType::StatelessProgrammableSwitch,
			programmable_switch_event: ProgrammableSwitchEventCharacteristic::new(id + 1 + 0, accessory_id),
			name: Some(NameCharacteristic::new(id + 1 + 0 + 1, accessory_id)),
			label_index: Some(LabelIndexCharacteristic::new(id + 1 + 1 + 1, accessory_id)),
			..Default::default()
        }
    }
pub fn new ( id : u64 , accessory_id : u64 ) -> Self { Self { id , hap_type : HapType :: StatelessProgrammableSwitch , programmable_switch_event : ProgrammableSwitchEventCharacteristic :: new ( id + 1 + 0 , accessory_id ) , name : Some ( NameCharacteristic :: new ( id + 1 + 0 + 1 , accessory_id ) ) , label_index : Some ( LabelIndexCharacteristic :: new ( id + 1 + 1 + 1 , accessory_id ) ) , .. Default :: default ( ) } }
Creates a new Stateless Programmable Switch service.
Creates a new Stateless Programmable Switch service .
id
u64
accessory_id
u64
id
u64
accessory_id
u64