ble

package
v0.0.0-...-d41c5fe Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultScanner = &Scanner{}

Functions

func Scan

func Scan(ctx context.Context) (<-chan Peripheral, error)

Types

type Peripheral

type Peripheral struct {
	RSSI             int16
	Address          string
	Name             string
	ManufacturerData []byte
}

type Scanner

type Scanner struct {
	Error error
	// contains filtered or unexported fields
}

func (*Scanner) Scan

func (s *Scanner) Scan() <-chan Peripheral

func (*Scanner) Start

func (s *Scanner) Start(ctx context.Context) error

func (*Scanner) Stop

func (s *Scanner) Stop() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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