Closed ju916 closed 5 years ago
I fixed that error for me by correcting the imports:
$ diff main.go-org main.go
18c18
< "github.com/muka/go-bluetooth/linux"
---
> "github.com/muka/go-bluetooth/linux/btmgmt"
56c56
< a := linux.NewBtMgmt(adapterID)
---
> a := btmgmt.NewBtMgmt(adapterID)
Thanks for noticing! I've just committed the required changes to master.
FYI: You might want to "fix" another installation issue.
make install
tries to copy to /usr/lib/security
This does not exist on Ubuntu. I used /lib/security
instead.
Preamble: This is my first go project, so please bear with me if this is a stupid mistake on my side.
When doing "make deps" I get:
I have Ubuntu 18.04 LTS with Go 1.10 (golang-1.10) and did:
It looks like it is downloading all the reuqired Go packages, but it does not find/use them. grep shows me that
NewBtMgmt()
is defined in../github.com/muka/go-bluetooth/linux/btmgmt/btmgmt.go