diff options
author | Vitaly Buka <vitalybuka@google.com> | 2016-01-04 12:43:53 -0800 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2016-01-04 23:20:07 +0000 |
commit | e6b17ed3577bfd093d6ec2b5959c110c7f9a1a6b (patch) | |
tree | 42c07bc9cce710e5a54261ef16c47b3df8116dae /examples | |
parent | ce850b557cd406e4dc546557acbf756484aac198 (diff) | |
download | libweave-e6b17ed3577bfd093d6ec2b5959c110c7f9a1a6b.tar.gz |
Update examples README file
Change-Id: I932438d8ad602ebf4a5e039feb73d9a38b96d572
Reviewed-on: https://weave-review.googlesource.com/2089
Reviewed-by: Alex Vakulenko <avakulenko@google.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/daemon/README | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/examples/daemon/README b/examples/daemon/README index ef52a47..feb57a7 100644 --- a/examples/daemon/README +++ b/examples/daemon/README @@ -78,22 +78,20 @@ Register device to cloud Send Command to the Daemon -------------------------- - go to the oauthplayground used for registration ticket command - in "Step 3", send base.identify with + in "Step 3", send command with HTTP Method: POST Request URI: https://www.googleapis.com/weave/v1/commands Enter request body: { "deviceId": "0f8a5ff5-1ef0-ec39-f9d8-66d1caeb9e3d", - "name": "_sample._hello", - "parameters": { "_name": "cloud user" } + "name": "_sample.hello", + "component": "sample", + "parameters": { "name": "cloud user" } } "Send the request", you command will be "queued" as its "state" - - verify the command execution with weave daemon - in terminal running the daemon, observe something similar to - New command '_sample._hello' arrived, ... - received command: _sample._hello - _sample._hello command: finished + - verify the command execution observing daemon console logs + - verify the command history with oauthplayground Similar to "Acquire Registration Ticket" section in this document, except in "step 3", do: @@ -104,9 +102,5 @@ Send Command to the Daemon "Send the request", you get all of the commands executed on your device, find something like "kind": "weave#command", - "name": "_sample._hello", - "results": { - "_reply": "Hello cloud user" - }, + "name": "_sample.hello", ... - |