diff options
author | Collin Guarino <collin.guarino@gmail.com> | 2016-02-06 11:59:46 -0500 |
---|---|---|
committer | Collin Guarino <collin.guarino@gmail.com> | 2016-02-06 11:59:46 -0500 |
commit | 9017b157aa97e6690cf242c38112edb32568b6c8 (patch) | |
tree | abe1a81944ccac08f4d36ba80f095c507d2e56f4 /light_test.go | |
parent | 666b312e0011459f471f89257c5dd8e3e495ee95 (diff) |
Fixed LightState struct and bridge.Put request model.
Diffstat (limited to 'light_test.go')
-rw-r--r-- | light_test.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/light_test.go b/light_test.go index 479111b..cf8ce93 100644 --- a/light_test.go +++ b/light_test.go @@ -19,7 +19,8 @@ func TestSetLightState(t *testing.T) { fmt.Println("\nTESTING LIGHT STATE:\n\n") bridge := NewBridge("192.168.1.128", "319b36233bd2328f3e40731b23479207") lights, _ := GetAllLights(bridge) - newState := LightState{On: true} - fmt.Println("\n\nSTATE: ", newState) - SetLightState(bridge, lights[1].Index, newState) + selectedLight := lights[0] + newState := LightState{On: true,} //On: false, *XY: [2]float32{5.0, 5.0}, + //fmt.Println("\n\nSTATE: ", newState) + SetLightState(bridge, selectedLight.Index, newState) } |