bluetooth

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bluetooth

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

func (*Bluetooth) Connect

func (b *Bluetooth) Connect(ctx context.Context, deviceName string) (err error)

func (*Bluetooth) Connected

func (b *Bluetooth) Connected() bool

func (*Bluetooth) Disconnect

func (b *Bluetooth) Disconnect() error

func (*Bluetooth) ListUUIDs

func (b *Bluetooth) ListUUIDs() error

func (*Bluetooth) ScanDevices

func (b *Bluetooth) ScanDevices()

func (*Bluetooth) StartNotifier

func (b *Bluetooth) StartNotifier(chNotify chan []byte, ServiceUUID [16]byte, CharacteristicUUID [16]byte) error

func (*Bluetooth) StartWriter

func (b *Bluetooth) StartWriter(ch chan []byte, ServiceUUID [16]byte, CharacteristicUUID [16]byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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