编辑出windows
This commit is contained in:
parent
23d647dfa6
commit
b8af94b57f
|
|
@ -0,0 +1,2 @@
|
|||
windows:
|
||||
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o iBeaconMeasure.exe .
|
||||
|
|
@ -37,7 +37,7 @@ var serviceHandler MQTT.MessageHandler = func(client MQTT.Client, msg MQTT.Messa
|
|||
if o[1] != "D02EAB2D6D49" {
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue