Skip to main content

goliothctl lightdb listen

Listen for device state changes on the LightDB root path or a specific path. Use the device name, device id or hardware id of the device to select the device.

goliothctl lightdb listen [device name] <path>
goliothctl lightdb listen [flags] <path>

Examples

# Listen to all lightdb messages from a device
> goliothctl lightdb listen <device name>
> goliothctl lightdb listen --id <device id>
> goliothctl lightdb listen --hwid <hardware id>

# Listen to a specific path for lightdb messages from a device
> goliothctl lightdb listen <device name> <path>
> goliothctl lightdb listen --id <device id> <path>
> goliothctl lightdb listen --hwid <hardware id> <path>

Options

  -h, --help               help for lightdb listen
--hwId stringArray hardware id
--id string device id

Options inherited from parent commands

      --apiUrl string      golioth api server url (default "https://api.golioth.io")
-c, --config string config file (default is $HOME/.golioth/.goliothctl.yaml)
--projectId string golioth project id

SEE ALSO