Skip to content
Permalink
Browse files

fix calls to NewSample

  • Loading branch information...
cbrake committed May 22, 2019
1 parent e873111 commit 54a071b271a97dcc2f5f8dab9934694a369b2e2c
Showing with 2 additions and 2 deletions.
  1. +2 −2 cmd/device-sim/main.go
@@ -66,12 +66,12 @@ func main() {
voltSim := sim.NewSim(2, 0.1, 1, 5)

for {
tempSample := data.NewSample("T0", tempSim.Sim())
tempSample := data.NewSample("T0", "12", tempSim.Sim())
err := sendSample(*flagDeviceID, tempSample)
if err != nil {
log.Println("Error sending sample: ", err)
}
voltSample := data.NewSample("V0", voltSim.Sim())
voltSample := data.NewSample("V0", "12", voltSim.Sim())
err = sendSample(*flagDeviceID, voltSample)
if err != nil {
log.Println("Error sending sample: ", err)

0 comments on commit 54a071b

Please sign in to comment.
You can’t perform that action at this time.