编辑出windows

This commit is contained in:
suguo.yao 2023-02-28 11:46:55 +08:00
parent 23d647dfa6
commit b8af94b57f
2 changed files with 3 additions and 1 deletions

2
Makefile Normal file
View File

@ -0,0 +1,2 @@
windows:
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o iBeaconMeasure.exe .

View File

@ -37,7 +37,7 @@ var serviceHandler MQTT.MessageHandler = func(client MQTT.Client, msg MQTT.Messa
if o[1] != "D02EAB2D6D49" { if o[1] != "D02EAB2D6D49" {
continue continue
} }
payload := fmt.Sprintf("%s,%s,%s,%f", time.Unix(int64(body.Time), 0), body.Mac, o[1], o[2].(float64)) payload := fmt.Sprintf("%s,%s,%s,%f,%s", time.Unix(int64(body.Time), 0), body.Mac, o[1], o[2].(float64), o[3])
logrus.Println(payload) logrus.Println(payload)
} }
} }