GCP IoT Core
In this tutorial, we will deploy a simple open-source application that collects metrics and send them to AWS IoT Core for further processing. All code for this blog post can be found at:
https://github.com/synpse-hq/metrics-nats-example-app - Sample metrics application https://github.com/synpse-hq/gcp-iot-core-example - GCP IoT Core example
Technologies used
Synpse - manage devices and deploy applications to them
NATs - a lightweight message broker that can run on-prem
Google IoT Core - message broker between all devices and GCP
Steps:
Create GCP IoT core
Configure data flow to forward results into Google storage account
Create GCP device for Synpse
Demo Synpse application from 3 microservices -Metrics demo, Nats messaging, AWS IoT python forwarder containers
GCP IoT Core
GCP Core works by creating a "device registry". So this is one of the first steps we have to do.
Configure GCP IoT Core create registry
Create pubsub topic for registry
Create GCP IoT registry:
Create storage event
Create dataflow job
Data flow would look as bellow:

Generate certificate for our device
Add public key to GCP IoT Core
Download google root CA
(Optional) Test application
Deploy an application
Deploy Synpse application. Modify application yaml with your thing endpoint.
Create certificate secret
Deploy the application:
where synpse-gcp-example.yaml is

Once running, you should see application running and data coming into the GCP storage account blob.

Last updated
Was this helpful?