1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
package hw
import (
"github.com/muka/go-bluetooth/hw/linux"
"github.com/muka/go-bluetooth/hw/linux/btmgmt"
"github.com/muka/go-bluetooth/hw/linux/hciconfig"
)
func GetAdapter(adapterID string) (a linux.AdapterInfo, err error) {
return linux.GetAdapter(adapterID)
}
func GetAdapters() ([]linux.AdapterInfo, error) {
return linux.GetAdapters()
}
func Up(adapterID string) error {
return linux.Up(adapterID)
}
func Down(adapterID string) error {
return linux.Down(adapterID)
}
func Reset(adapterID string) error {
return linux.Reset(adapterID)
}
func NewBtMgmt(adapterID string) *btmgmt.BtMgmt {
return btmgmt.NewBtMgmt(adapterID)
}
func NewHCIConfig(adapterID string) *hciconfig.HCIConfig {
return hciconfig.NewHCIConfig(adapterID)
}
|