-
Notifications
You must be signed in to change notification settings - Fork 192
Expand file tree
/
Copy pathgap_s113v7.go
More file actions
41 lines (34 loc) · 1.12 KB
/
gap_s113v7.go
File metadata and controls
41 lines (34 loc) · 1.12 KB
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
//go:build softdevice && s113v7
package bluetooth
/*
// Add the correct SoftDevice include path to CFLAGS, so #include will work as
// expected.
#cgo CFLAGS: -Is113_nrf52_7.0.1/s113_nrf52_7.0.1_API/include
*/
import "C"
// Disconnect from the BLE device.
//
// s113v7 is a peripheral-only device, so this is not supported.
func (d Device) Disconnect() error {
return errNotSupported
}
// DiscoverServices starts a service discovery procedure.
//
// s113v7 is a peripheral-only device, so this is not supported.
func (d Device) DiscoverServices(uuids []UUID) ([]DeviceService, error) {
return nil, errNotSupported
}
// RequestConnectionParams requests a different connection latency and timeout
// of the given device connection.
//
// s113v7 is a peripheral-only device, so this is not supported.
func (d Device) RequestConnectionParams(params ConnectionParams) error {
return errNotSupported
}
// Connected returns whether the device is currently connected.
//
// s113v7 is a peripheral-only device, so this is not supported.
func (d Device) Connected() (bool, error) {
return false, errNotSupported
}
type DeviceService struct{}