5d805a929c
This makes it possible to discover services on a connected central while in peripheral mode, for example.
16 lines
212 B
Go
16 lines
212 B
Go
//go:build softdevice
|
|
|
|
package bluetooth
|
|
|
|
/*
|
|
#include "ble_gap.h"
|
|
*/
|
|
import "C"
|
|
|
|
// Device is a connection to a remote peripheral or central.
|
|
type Device struct {
|
|
Address Address
|
|
|
|
connectionHandle C.uint16_t
|
|
}
|