Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small fixes to README.md #491

Merged
merged 1 commit into from
Sep 27, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions iot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,30 @@ Cloud IoT Core platform.

## Quickstart

1. Install the Google Cloud SDK as described in [the device manager guide](https://cloud.google.com/iot/docs/device_manager_guide#install_the_gcloud_cli).
1. Install the Google Cloud SDK as described in [the Cloud IoT Core documentation](https://cloud.google.com/iot/docs/how-tos/getting-started#set_up_the_google_cloud_sdk_and_gcloud).
1. Create a Cloud Pub/Sub topic:

gcloud beta pubsub topics create projects/my-iot-project/topics/device-events

1. Add the service account `cloud-iot@system.gserviceaccount.com` to that
1. Add the service account `cloud-iot@system.gserviceaccount.com` with the role `Publisher` to that
Cloud Pub/Sub topic from the [Cloud Developer Console](https://console.cloud.google.com)
or by setting the `GOOGLE_CLOUD_PROJECT` environment variable and using the
helper script in the `scripts/` folder.

1. Create a registry:

gcloud alpha iot registries create my-registry \
gcloud beta iot registries create my-registry \
--project=my-iot-project \
--region=us-central1 \
--pubsub-topic=projects/my-iot-project/topics/device-events
--event-pubsub-topic=projects/my-iot-project/topics/device-events

1. Use the `generate_keys.sh` script to generate your signing keys:

./scripts/generate_keys.sh

1. Create a device.

gcloud alpha iot devices create my-node-device \
gcloud beta iot devices create my-node-device \
--project=my-iot-project \
--region=us-central1 \
--registry=my-registry \
Expand Down