code.pfad.fr/gohmekit@v0.2.1/hapip/characteristic/service/missing_service.go (about) 1 package service 2 3 import ( 4 "code.pfad.fr/gohmekit/hapip" 5 "code.pfad.fr/gohmekit/hapip/characteristic" 6 ) 7 8 const HAPProtocolInformation_Type = "A2" 9 10 // HAPProtocolInformation represents a HAP Protocol Information (A2) 11 // Required characteristics: 12 // - version: Version (37) 13 // 14 // UUID: 000000A2-0000-1000-8000-0026BB765291. 15 func HAPProtocolInformation(version hapip.Characteristic, optional ...hapip.Characteristic) characteristic.Service { 16 chars := []hapip.Characteristic{version} 17 return characteristic.Service{ 18 Typ: HAPProtocolInformation_Type, 19 Characteristic: append(chars, optional...), 20 } 21 }