|
1 | | -# Cloud IoT Core Python Samples |
| 1 | +# Deprecation Notice |
2 | 2 |
|
3 | | -## DEPRECATION NOTICE |
| 3 | +* <h3>Google Cloud IoT Core is <a href="https://cloud.google.com/iot/docs/release-notes#August_16_2022">retired as of August 16, 2023</a>.</h3> |
4 | 4 |
|
5 | | -Please see the [release notes](https://cloud.google.com/iot/docs/release-notes) for information on the upcoming deprecation of IoT Core |
6 | | - |
7 | | -[![Open in Cloud Shell][shell_img]][shell_link] |
8 | | - |
9 | | -[shell_img]: http://gstatic.com/cloudssh/images/open-btn.png |
10 | | -[shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=iot/api-client/README.md |
11 | | -This folder contains Python samples that demonstrate an overview of the |
12 | | -Google Cloud IoT Core platform. |
13 | | - |
14 | | -## Quickstart |
15 | | -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). |
16 | | -2. Create a PubSub topic: |
17 | | - |
18 | | - gcloud beta pubsub topics create projects/my-iot-project/topics/device-events |
19 | | - |
20 | | -3. Add the service account `cloud-iot@system.gserviceaccount.com` with the role `Publisher` to that |
21 | | -PubSub topic from the [Cloud Developer Console](https://console.cloud.google.com) |
22 | | -or by using the helper script in the /scripts folder. |
23 | | - |
24 | | -4. Create a registry: |
25 | | - |
26 | | - gcloud beta iot registries create my-registry \ |
27 | | - --project=my-iot-project \ |
28 | | - --region=us-central1 \ |
29 | | - --event-pubsub-topic=projects/my-iot-project/topics/device-events |
30 | | - |
31 | | -5. Use the `generate_keys.sh` script to generate your signing keys: |
32 | | - |
33 | | - ./generate_keys.sh |
34 | | - |
35 | | -6. Register a device: |
36 | | - |
37 | | - gcloud beta iot devices create my-python-device \ |
38 | | - --project=my-iot-project \ |
39 | | - --region=us-central1 \ |
40 | | - --registry=my-registry \ |
41 | | - --public-key path=rsa_cert.pem,type=rs256 |
42 | | - |
43 | | -7. Connect a sample device using the sample app in the `mqtt_example` folder. |
44 | | -8. Learn how to manage devices programmatically with the sample app in the |
45 | | -`manager` folder. |
| 5 | +* <h3>Hence, the samples in this directory are archived and are no longer maintained.</h3> |
46 | 6 |
|
| 7 | +* <h3>If you are customer with an assigned Google Cloud account team, contact your account team for more information.</h3> |
0 commit comments