Documentation ¶
Index ¶
- Constants
- func BLEHandleFoundPeer(remotePID *C.char) int
- func BLEHandleLostPeer(remotePID *C.char)
- func BLEReceiveFromPeer(remotePID *C.char, payload unsafe.Pointer, length C.int)
- func NewDriver(logger *zap.Logger) proximity.NativeDriver
- type Driver
- func (d *Driver) CloseConnWithPeer(remotePID string)
- func (d *Driver) DefaultAddr() string
- func (d *Driver) DialPeer(remotePID string) bool
- func (d *Driver) ProtocolCode() int
- func (d *Driver) ProtocolName() string
- func (d *Driver) SendToPeer(remotePID string, payload []byte) bool
- func (d *Driver) Start(localPID string)
- func (d *Driver) Stop()
Constants ¶
View Source
const ( DefaultAddr = "/ble/Qmeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" ProtocolCode = 0x0042 ProtocolName = "ble" )
View Source
const Supported = true
Variables ¶
This section is empty.
Functions ¶
func BLEHandleFoundPeer ¶
func BLEHandleLostPeer ¶
func BLEReceiveFromPeer ¶
Types ¶
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
func (*Driver) CloseConnWithPeer ¶
func (*Driver) DefaultAddr ¶
func (*Driver) ProtocolCode ¶
func (*Driver) ProtocolName ¶
Click to show internal directories.
Click to hide internal directories.