Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bluetooth socket question #247

Open
MatejMagat305 opened this issue May 14, 2022 · 0 comments
Open

bluetooth socket question #247

MatejMagat305 opened this issue May 14, 2022 · 0 comments

Comments

@MatejMagat305
Copy link

Can I ask, the oficial library do not contain bluetooth socket api, do you provide it? Or is it on plan? The problem is: I crreate socket and I do not know bind becouse bluetooth address do not exist.........

package main

import "golang.org/x/sys/windows"

func main() {
	sock, err := windows.Socket(windows.AF_BTH, windows.SOCK_STREAM, windows.BTHPROTO_RFCOMM)
	if err != nil {
		panic(err)
	}
	err = windows.Bind(sock,?)
	if err != nil {
		panic(err)
	}
	return
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant