How to do it...

In this recipe, we'll see how a hypothetical temperature sensor sends data to IoT Core and how we'll be able to read the telemetry data from the linked Pub/Sub topic:

  1. Navigate to the Google Cloud Console's IoT Core module and click on Create device registry:
  1. Enter the details to create a device registry:
    1. Enter a Registry ID and select the Cloud region as us-central1.
    2. Leave both the protocols selected though we'll send messages via HTTP for this recipe.
    3. For the Default telemetry topic, click on Create a topic.
    4. Enter a new topic name and click on CREATE on the Create a topic pop-up screen:
  1. The Device state topic is optional. ...

Get Building Google Cloud Platform Solutions now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.