blob: 617db21533ee1900494330156fee1d023c74b9e3 [file] [log] [blame]
package gatt
const (
CentralManager = 0 // Client functions (default)
PeripheralManager = 1 // Server functions
)
// MacDeviceRole specify the XPC connection type to connect blued.
// THis option can only be used with NewDevice on OS X implementation.
func MacDeviceRole(r int) Option {
return func(d Device) error {
d.(*device).role = r
return nil
}
}