Skip to content

Commit 1da8895

Browse files
committed
Merge branch 'master' of https://github.com/googlecloudplatform/java-docs-samples into iot-snippets
2 parents 455971d + 8317092 commit 1da8895

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

iot/api-client/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,29 @@ Google Cloud IoT Core platform.
44

55
## Quickstart
66

7-
1. Install the gCloud CLI as described in [the device manager guide](https://cloud.google.com/iot/docs/device_manager_guide).
7+
1. Install the gCloud CLI 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).
88
2. Create a PubSub topic:
99

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

12-
3. Add the special account `cloud-iot@system.gserviceaccount.com` to that
12+
3. Add the special account `cloud-iot@system.gserviceaccount.com` with the role `Publisher` to that
1313
PubSub topic from the [Cloud Developer Console](https://console.cloud.google.com)
1414
or by using the helper script in the [/scripts](./scripts) folder.
1515

1616
4. Create a registry:
1717

18-
gcloud alpha iot registries create my-registry \
18+
gcloud beta iot registries create my-registry \
1919
--project=my-iot-project \
2020
--region=us-central1 \
21-
--pubsub-topic=projects/my-iot-project/topics/device-events
21+
--event-pubsub-topic=projects/my-iot-project/topics/device-events
2222

2323
5. Use the [`generate_keys.sh`](generate_keys.sh) script to generate your signing keys:
2424

2525
./generate_keys.sh
2626

2727
6. Create a device.
2828

29-
gcloud alpha iot devices create my-java-device \
29+
gcloud beta iot devices create my-java-device \
3030
--project=my-iot-project \
3131
--region=us-central1 \
3232
--registry=my-registry \

0 commit comments

Comments
 (0)