Skip to content

Commit

Permalink
Add multiple trackers to test app
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdsteele committed Sep 9, 2023
1 parent d9f303d commit 0e940ed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion functions/cmd/main-update-test-position/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func main() {
arlington := []float64{41.452374, -96.354280}
home := []float64{41.276497, -95.988033}

isAtHome := true
isAtHome := false
var lon, lat float64
if isAtHome {
lon = home[1]
Expand All @@ -29,7 +29,10 @@ func main() {
lat = peanut[0]
}
sampleTime := time.Now()
// Fake device
deviceId := "fake-tracker"
// Real device
deviceId = "foobar"

spot.UpdatePositionWithDeviceId(cfg, lon, lat, sampleTime, deviceId)
fmt.Printf("Updated fake tracker. %d\n", isAtHome)
Expand Down

0 comments on commit 0e940ed

Please sign in to comment.