bluetooth

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

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

Agent implements org.bluez.Agent1 interface

func NewAgent

func NewAgent() (*Agent, error)

func (*Agent) AuthorizeService

func (a *Agent) AuthorizeService(device dbus.ObjectPath, uuid string) *dbus.Error

func (*Agent) Cancel

func (a *Agent) Cancel() *dbus.Error

func (*Agent) DisplayPasskey

func (a *Agent) DisplayPasskey(device dbus.ObjectPath, passkey uint32, entered uint16) *dbus.Error

func (*Agent) DisplayPinCode

func (a *Agent) DisplayPinCode(device dbus.ObjectPath, pincode string) *dbus.Error

func (*Agent) Register

func (a *Agent) Register() error

func (*Agent) Release

func (a *Agent) Release() *dbus.Error

func (*Agent) RequestAuthorization

func (a *Agent) RequestAuthorization(device dbus.ObjectPath) *dbus.Error

func (*Agent) RequestConfirmation

func (a *Agent) RequestConfirmation(device dbus.ObjectPath, passkey uint32) *dbus.Error

func (*Agent) RequestPasskey

func (a *Agent) RequestPasskey(device dbus.ObjectPath) (uint32, *dbus.Error)

func (*Agent) RequestPinCode

func (a *Agent) RequestPinCode(device dbus.ObjectPath) (string, *dbus.Error)

func (*Agent) Unregister

func (a *Agent) Unregister() error

type Controller

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

func New

func New() (*Controller, error)

func (*Controller) Close

func (c *Controller) Close() error

func (*Controller) Connect

func (c *Controller) Connect(address string) error

func (*Controller) Devices

func (c *Controller) Devices() []types.Device

func (*Controller) Disconnect

func (c *Controller) Disconnect(address string) error

func (*Controller) IsScanning

func (c *Controller) IsScanning() bool

func (*Controller) Pair

func (c *Controller) Pair(address string) error

func (*Controller) PowerOff

func (c *Controller) PowerOff() error

func (*Controller) PowerOn

func (c *Controller) PowerOn() error

func (*Controller) RefreshDevices

func (c *Controller) RefreshDevices() error

func (*Controller) Remove

func (c *Controller) Remove(address string) error

func (*Controller) Scan

func (c *Controller) Scan(duration time.Duration) error

func (*Controller) ScanOff

func (c *Controller) ScanOff() error

func (*Controller) ScanOn

func (c *Controller) ScanOn() error

func (*Controller) Start

func (c *Controller) Start() error

func (*Controller) Trust

func (c *Controller) Trust(address string) error

func (*Controller) Untrust

func (c *Controller) Untrust(address string) error

Jump to

Keyboard shortcuts

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