Skip to Content
Google Cloud Platform for Developers
book

Google Cloud Platform for Developers

by Ted Hunter, Steven Porter
July 2018
Intermediate to advanced
506 pages
16h 2m
English
Packt Publishing
Content preview from Google Cloud Platform for Developers

Consuming device data

When a device publishes telemetry and state events to Cloud IoT Core, those events are propagated to Cloud Pub/Sub topics associated with the device registry. In previous examples, we configured the weather-sensors device registry to push telemetry events to the weather-telemetry topic and device state events to the weather-device-state topic. As covered earlier in this chapter, Cloud Pub/Sub queues messages based on subscriptions. When a Pub/Sub topic has no subscriptions, any messages published to that topic will simply be dropped.

Because device events are pushed to Cloud Pub/Sub topics, any service that can consume Pub/Sub messages is capable of receiving device events. Google Cloud Functions are a good candidate ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Google Cloud Platform in Action

Google Cloud Platform in Action

John J. (JJ) Geewax
Google Cloud Platform for Architects

Google Cloud Platform for Architects

Vitthal Srinivasan, Loonycorn Ravi, Judy Raj

Publisher Resources

ISBN: 9781788837675Supplemental Content