ble

package
v2.209.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2020 License: Apache-2.0, MIT Imports: 4 Imported by: 0

Documentation

Index

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 BLEHandleFoundPeer(remotePID *C.char) int

func BLEHandleLostPeer

func BLEHandleLostPeer(remotePID *C.char)

func BLEReceiveFromPeer

func BLEReceiveFromPeer(remotePID *C.char, payload unsafe.Pointer, length C.int)

func NewDriver

func NewDriver(logger *zap.Logger) proximity.NativeDriver

Types

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

func (*Driver) CloseConnWithPeer

func (d *Driver) CloseConnWithPeer(remotePID string)

func (*Driver) DefaultAddr

func (d *Driver) DefaultAddr() string

func (*Driver) DialPeer

func (d *Driver) DialPeer(remotePID string) bool

func (*Driver) ProtocolCode

func (d *Driver) ProtocolCode() int

func (*Driver) ProtocolName

func (d *Driver) ProtocolName() string

func (*Driver) SendToPeer

func (d *Driver) SendToPeer(remotePID string, payload []byte) bool

func (*Driver) Start

func (d *Driver) Start(localPID string)

func (*Driver) Stop

func (d *Driver) Stop()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL