bluetoothutil

package
v1.0.37 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendData

func SendData(sendbuf []byte) (int, error)

func SendDataMultiTimes

func SendDataMultiTimes(sendbuf []byte) error

func Start

func Start(serviceName string, recvCallBack OnRecvCallback,
	writeFlags, readFlags bluetooth.CharacteristicPermissions) error

func StartByServiceUUID added in v1.0.30

func StartByServiceUUID(serviceName, _serviceUUID string,
	recvCallBack OnRecvCallback,
	writeFlags, readFlags bluetooth.CharacteristicPermissions) error

Types

type OnRecvCallback

type OnRecvCallback func(client bluetooth.Connection, offset int, value []byte)

Jump to

Keyboard shortcuts

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