light

command
Version: v0.0.0-...-18e4e41 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2021 License: MIT Imports: 7 Imported by: 0

README

Light example

This example shows how to interact with a specified light resource. To turn on the light at resource ID 2 (i.e. the first one available on the gateway), you would run:

$ go run main.go --host=<IP of your gateway> --apiKey=<API key of the gateway> --id=2 --setState=true --isOn=true

If you wish to retrieve all lights, simply omit the 'id' parameter. If you wish just to retrieve a light, omit the 'setState/setConfig' parameters.

If necessary, it is possible to get both the IP and the API key by following the documentation here.

Documentation

The Go Gopher

There is no documentation for this package.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL