menu
arrow_back

Using Firestore with Cloud IoT Core for Device Configuration

Using Firestore with Cloud IoT Core for Device Configuration

1 jam 7 Kredit

GSP265

Google Cloud Self-Paced Labs

Overview

In this lab you will learn how to configure Cloud Functions for Firebase to relay document changes in Cloud Firestore as configuration updates for Cloud IoT Core Devices.

Cloud IoT Core provides a way to send configuration to devices over MQTT or HTTP. The structure of this payload is unspecified and delivered as raw bytes. This means that if you have different parts of your IoT system wanting to write parts of the configuration, each has to parse, patch, then re-write the configuration value in IoT Core.

If you want a payload delivered to a device in a binary format, such as CBOR, that means each of these participating components of your system also need to deserialize and re-serialize the structured data.

By using Cloud Firestore to serve as a layer in between the systems that update a device's configuration and IoT Core, you can take advantage of Firestore's structured data types and partial document updates.

Bergabunglah dengan Qwiklabs untuk membaca tentang lab ini selengkapnya... beserta informasi lainnya!

  • Dapatkan akses sementara ke Google Cloud Console.
  • Lebih dari 200 lab mulai dari tingkat pemula hingga lanjutan.
  • Berdurasi singkat, jadi Anda dapat belajar dengan santai.
Bergabung untuk Memulai Lab Ini
Skor

—/100

Create a Firebase project

Jalankan Langkah

/ 10

Create a Pub/Sub a Pub/Sub topic

Jalankan Langkah

/ 10

Create a Cloud IoT core Registry

Jalankan Langkah

/ 20

Deploy relay function

Jalankan Langkah

/ 20

Create your device

Jalankan Langkah

/ 10

Create a database

Jalankan Langkah

/ 10

Create another device

Jalankan Langkah

/ 10

Cleaning Up

Jalankan Langkah

/ 10