bluetooth
bluetooth copied to clipboard
Cannot compile in windows
I install cygwin in windows 10
export GOARCH=amd64
export GOOS=windows
git clone https://github.com/tinygo-org/bluetooth.git
bash:/tmp/bluetooth$ go run ./examples/scanner/main.go
# tinygo.org/x/bluetooth/winbt
winbt\advertisement.go:59:11: undefined: NewEvent
winbt\advertisement.go:59:87: undefined: Event
winbt\advertisement.go:75:11: undefined: NewEvent
winbt\advertisement.go:75:87: undefined: Event
I got it working with the 64bit version of msys2 ( https://www.msys2.org/ ) - but windows support is currently very lacking, it only supports some (very basic) scanning at the moment.
Please see https://github.com/tinygo-org/bluetooth/issues/13
This should now be corrected, so now closing.