-
Notifications
You must be signed in to change notification settings - Fork 12
/
peripheraldelegate.go
76 lines (61 loc) · 4.11 KB
/
peripheraldelegate.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
package cbgo
// PeripheralDelegate: https://developer.apple.com/documentation/corebluetooth/cbperipheraldelegate
type PeripheralDelegate interface {
// DidDiscoverServices: https://developer.apple.com/documentation/corebluetooth/cbperipheraldelegate/1518744-peripheral
DidDiscoverServices(prph Peripheral, err error)
// DidDiscoverIncludedServices: https://developer.apple.com/documentation/corebluetooth/cbperipheraldelegate/1519124-peripheral
DidDiscoverIncludedServices(prph Peripheral, svc Service, err error)
// DidDiscoverCharacteristics: https://developer.apple.com/documentation/corebluetooth/cbperipheraldelegate/1518821-peripheral
DidDiscoverCharacteristics(prph Peripheral, svc Service, err error)
// DidDiscoverDescriptors: https://developer.apple.com/documentation/corebluetooth/cbperipheraldelegate/1518785-peripheral
DidDiscoverDescriptors(prph Peripheral, chr Characteristic, err error)
// DidUpdateValueForCharacteristic: https://developer.apple.com/documentation/corebluetooth/cbperipheraldelegate/1518708-peripheral
DidUpdateValueForCharacteristic(prph Peripheral, chr Characteristic, err error)
// DidUpdateValueForDescriptor: https://developer.apple.com/documentation/corebluetooth/cbperipheraldelegate/1518929-peripheral
DidUpdateValueForDescriptor(prph Peripheral, dsc Descriptor, err error)
// DidWriteValueForCharacteristic: https://developer.apple.com/documentation/corebluetooth/cbperipheraldelegate/1518823-peripheral
DidWriteValueForCharacteristic(prph Peripheral, chr Characteristic, err error)
// DidWriteValueForDescriptor: https://developer.apple.com/documentation/corebluetooth/cbperipheraldelegate/1519062-peripheral
DidWriteValueForDescriptor(prph Peripheral, dsc Descriptor, err error)
// IsReadyToSendWriteWithoutResponse: https://developer.apple.com/documentation/corebluetooth/cbperipheraldelegate/2874034-peripheralisreadytosendwritewith
IsReadyToSendWriteWithoutResponse(prph Peripheral)
// DidUpdateNotificationState: https://developer.apple.com/documentation/corebluetooth/cbperipheraldelegate/1518768-peripheral
DidUpdateNotificationState(prph Peripheral, chr Characteristic, err error)
// DidReadRSSI: https://developer.apple.com/documentation/corebluetooth/cbperipheraldelegate/1620304-peripheral
DidReadRSSI(prph Peripheral, rssi int, err error)
// DidUpdateName: https://developer.apple.com/documentation/corebluetooth/cbperipheraldelegate/1518801-peripheraldidupdatename
DidUpdateName(prph Peripheral)
// DidModifyServices: https://developer.apple.com/documentation/corebluetooth/cbperipheraldelegate/1518865-peripheral
DidModifyServices(prph Peripheral, invSvcs []Service)
}
// PeripheralDelegateBase implements the PeripheralDelegate interface with stub
// functions. Embed this in your delegate type if you only want to define a
// subset of the PeripheralDelegate interface.
type PeripheralDelegateBase struct {
}
func (b *PeripheralDelegateBase) DidDiscoverServices(prph Peripheral, err error) {
}
func (b *PeripheralDelegateBase) DidDiscoverIncludedServices(prph Peripheral, svc Service, err error) {
}
func (b *PeripheralDelegateBase) DidDiscoverCharacteristics(prph Peripheral, svc Service, err error) {
}
func (b *PeripheralDelegateBase) DidDiscoverDescriptors(prph Peripheral, chr Characteristic, err error) {
}
func (b *PeripheralDelegateBase) DidUpdateValueForCharacteristic(prph Peripheral, chr Characteristic, err error) {
}
func (b *PeripheralDelegateBase) DidUpdateValueForDescriptor(prph Peripheral, dsc Descriptor, err error) {
}
func (b *PeripheralDelegateBase) DidWriteValueForCharacteristic(prph Peripheral, chr Characteristic, err error) {
}
func (b *PeripheralDelegateBase) DidWriteValueForDescriptor(prph Peripheral, dsc Descriptor, err error) {
}
func (b *PeripheralDelegateBase) IsReadyToSendWriteWithoutResponse(prph Peripheral) {
}
func (b *PeripheralDelegateBase) DidUpdateNotificationState(prph Peripheral, chr Characteristic, err error) {
}
func (b *PeripheralDelegateBase) DidReadRSSI(prph Peripheral, rssi int, err error) {
}
func (b *PeripheralDelegateBase) DidUpdateName(prph Peripheral) {
}
func (b *PeripheralDelegateBase) DidModifyServices(prph Peripheral, invSvcs []Service) {
}