driver

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BleClient

type BleClient struct {
	Client ble.Client
	// contains filtered or unexported fields
}

BleClient is the client structure.

func NewClient

func NewClient(config BleConfig) (bc BleClient, err error)

func (*BleClient) Disconnect

func (bc *BleClient) Disconnect() error

Disconnect from a Device

func (*BleClient) GetStatus

func (bc *BleClient) GetStatus() string

GetStatus get device status. Now we could only get the connection status.

func (*BleClient) Read

func (bc *BleClient) Read(c *ble.Characteristic) ([]byte, error)

func (*BleClient) Set

func (bc *BleClient) Set(c ble.UUID, b []byte) error

type BleConfig

type BleConfig struct {
	Addr string
}

Jump to

Keyboard shortcuts

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