Documentation
¶
Index ¶
- type Agent
- func (a *Agent) AuthorizeService(device dbus.ObjectPath, uuid string) *dbus.Error
- func (a *Agent) Cancel() *dbus.Error
- func (a *Agent) DisplayPasskey(device dbus.ObjectPath, passkey uint32, entered uint16) *dbus.Error
- func (a *Agent) DisplayPinCode(device dbus.ObjectPath, pincode string) *dbus.Error
- func (a *Agent) Register() error
- func (a *Agent) Release() *dbus.Error
- func (a *Agent) RequestAuthorization(device dbus.ObjectPath) *dbus.Error
- func (a *Agent) RequestConfirmation(device dbus.ObjectPath, passkey uint32) *dbus.Error
- func (a *Agent) RequestPasskey(device dbus.ObjectPath) (uint32, *dbus.Error)
- func (a *Agent) RequestPinCode(device dbus.ObjectPath) (string, *dbus.Error)
- func (a *Agent) Unregister() error
- type Controller
- func (c *Controller) Close() error
- func (c *Controller) Connect(address string) error
- func (c *Controller) Devices() []types.Device
- func (c *Controller) Disconnect(address string) error
- func (c *Controller) IsScanning() bool
- func (c *Controller) Pair(address string) error
- func (c *Controller) PowerOff() error
- func (c *Controller) PowerOn() error
- func (c *Controller) RefreshDevices() error
- func (c *Controller) Remove(address string) error
- func (c *Controller) Scan(duration time.Duration) error
- func (c *Controller) ScanOff() error
- func (c *Controller) ScanOn() error
- func (c *Controller) Start() error
- func (c *Controller) Trust(address string) error
- func (c *Controller) Untrust(address string) error
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 (*Agent) AuthorizeService ¶
func (*Agent) DisplayPasskey ¶
func (*Agent) DisplayPinCode ¶
func (*Agent) RequestAuthorization ¶
func (a *Agent) RequestAuthorization(device dbus.ObjectPath) *dbus.Error
func (*Agent) RequestConfirmation ¶
func (*Agent) RequestPasskey ¶
func (*Agent) RequestPinCode ¶
func (*Agent) Unregister ¶
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) 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
Click to show internal directories.
Click to hide internal directories.