forked from brutella/hc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtunneled_btle_accessory_service.go
44 lines (32 loc) · 1.58 KB
/
tunneled_btle_accessory_service.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// THIS FILE IS AUTO-GENERATED
package service
import (
"github.com/brutella/hc/characteristic"
)
const TypeTunneledBTLEAccessoryService = "56"
type TunneledBTLEAccessoryService struct {
*Service
Name *characteristic.Name
AccessoryIdentifier *characteristic.AccessoryIdentifier
TunneledAccessoryStateNumber *characteristic.TunneledAccessoryStateNumber
TunneledAccessoryConnected *characteristic.TunneledAccessoryConnected
TunneledAccessoryAdvertising *characteristic.TunneledAccessoryAdvertising
TunnelConnectionTimeout *characteristic.TunnelConnectionTimeout
}
func NewTunneledBTLEAccessoryService() *TunneledBTLEAccessoryService {
svc := TunneledBTLEAccessoryService{}
svc.Service = New(TypeTunneledBTLEAccessoryService)
svc.Name = characteristic.NewName()
svc.AddCharacteristic(svc.Name.Characteristic)
svc.AccessoryIdentifier = characteristic.NewAccessoryIdentifier()
svc.AddCharacteristic(svc.AccessoryIdentifier.Characteristic)
svc.TunneledAccessoryStateNumber = characteristic.NewTunneledAccessoryStateNumber()
svc.AddCharacteristic(svc.TunneledAccessoryStateNumber.Characteristic)
svc.TunneledAccessoryConnected = characteristic.NewTunneledAccessoryConnected()
svc.AddCharacteristic(svc.TunneledAccessoryConnected.Characteristic)
svc.TunneledAccessoryAdvertising = characteristic.NewTunneledAccessoryAdvertising()
svc.AddCharacteristic(svc.TunneledAccessoryAdvertising.Characteristic)
svc.TunnelConnectionTimeout = characteristic.NewTunnelConnectionTimeout()
svc.AddCharacteristic(svc.TunnelConnectionTimeout.Characteristic)
return &svc
}