diff --git a/Makefile b/Makefile index bfabcdf..d3bf163 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,11 @@ arm: go mod tidy GOOS=linux GOARCH=arm GOARM=7 go build +.PHONY: windows +windows: + go mod tidy + CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o ble.exe . + .PHONY: release release: arm ssh pi@192.168.0.21 "sudo systemctl stop ble.service" diff --git a/readme.md b/readme.md index 179918c..e7388ae 100644 --- a/readme.md +++ b/readme.md @@ -4,7 +4,7 @@ 希望用于通过蓝牙RSSI值判断距离的研究。 ### 组件 -- github.com/paypal/gatt +- github.com/paypal/gatt ### 部署 - sudo hciconfig hci0 down @@ -19,6 +19,8 @@ > lsb_release -a - 直接查看系统的架构 > arch +- gatt supports both Linux and OS X. + > 不支持windows,不支持windows,不支持windows! ### 意外收获 - 在低性能硬件上的程序优化