Documentation ¶
Index ¶
- Constants
- type BtAdapter
- type BtMgmt
- func (h *BtMgmt) Reset() error
- func (h *BtMgmt) SetAdvertising(status bool) error
- func (h *BtMgmt) SetBondable(status bool) error
- func (h *BtMgmt) SetBredr(status bool) error
- func (h *BtMgmt) SetClass(major, minor string) error
- func (h *BtMgmt) SetConnectable(status bool) error
- func (h *BtMgmt) SetDeviceID(did string) error
- func (h *BtMgmt) SetDiscoverable(status bool) error
- func (h *BtMgmt) SetFastConnectable(status bool) error
- func (h *BtMgmt) SetHs(status bool) error
- func (h *BtMgmt) SetLe(status bool) error
- func (h *BtMgmt) SetLinkLevelSecurity(status bool) error
- func (h *BtMgmt) SetName(name string) error
- func (h *BtMgmt) SetPairable(status bool) error
- func (h *BtMgmt) SetPowered(status bool) error
- func (h *BtMgmt) SetPrivacy(status bool) error
- func (h *BtMgmt) SetSc(status bool) error
- func (h *BtMgmt) SetSsp(status bool) error
Constants ¶
View Source
const (
DefaultBinPath = "btmgmt"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BtAdapter ¶
type BtAdapter struct { ID string Name string ShortName string Addr string Version string Manufacturer string Class string SupportedSettings []string CurrentSettings []string }
BtAdapter contains info about adapter from btmgmt
func GetAdapter ¶
GetAdapter return an adapter
type BtMgmt ¶
type BtMgmt struct { // BinPath configure the CLI path to btmgmt BinPath string // contains filtered or unexported fields }
BtMgmt btmgmt command wrapper
func (*BtMgmt) SetAdvertising ¶
SetAdvertising Set LE advertising
func (*BtMgmt) SetBondable ¶
SetBondable Set bondable state
func (*BtMgmt) SetConnectable ¶
SetConnectable Set connectable state
func (*BtMgmt) SetDeviceID ¶
SetDeviceID Set Device ID name
func (*BtMgmt) SetDiscoverable ¶
SetDiscoverable Set discoverable state
func (*BtMgmt) SetFastConnectable ¶
SetFastConnectable Set fast connectable state
func (*BtMgmt) SetLinkLevelSecurity ¶
SetLinkLevelSecurity Set link level security
func (*BtMgmt) SetPairable ¶
SetPairable Set bondable state
func (*BtMgmt) SetPowered ¶
SetPowered set power to adapter
func (*BtMgmt) SetPrivacy ¶
SetPrivacy Set privacy support
Click to show internal directories.
Click to hide internal directories.