Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Info

Google IoT Core was retired in summer or 2023. Clearblade IoT Core provides a drop-in replacement for the MQTT Server endpoint. As a result, Clearblade IoT Core works with Cirrus Link's Google Cloud Injector and the Google Cloud. More information is available here: https://iot.clearblade.com.

Prerequisites

  • Ignition with Google Cloud Injector Module installed
  • Ignition Designer installed
    • Review the Inductive Automation documentation for Launching Designer against the Ignition gateway
  • An existing Google Cloud Platform Clearblade IoT Core account with a Project, IoT Core registry, credentials, and device created.
    • Documentation on getting started with the Google Cloud Clearblade IoT Core can be found found here

Summary

This tutorial will provide step-by-step instructions for the following:

  • Configuring the Google Cloud Injector Module to connect to an existing Cloud Clearblade IoT Core
  • Publishing live Tag data and events to the connected Cloud Clearblade IoT Core 

Upon completion of this module you will have an Ignition Gateway connected and publishing live Tag data to data to a Cloud Clearblade IoT Core.

Architecture


Tutorial

...

Once you have Ignition and the Google Cloud Injector Module installed and running we can setup the configuration to connect to your existing Cloud Clearblade IoT Core.

Tip
Review the Google Cloud Injector Module configuration guide for more details on each tab

Navigate to the Google Cloud Injector Modules configuration section from the left side bar in the Ignition Gateway and select the Cloud Clearblade IoT Core tab.

Set the following parameters:

  • Setting Name
    • This can be any unique identifier. For this tutorial we will use "TestSetting".
  • GCP Project ID
    • This is the ID of the project that was created with the Google Cloud Platform account.
  • GCP Cloud Region
    • This should be obtained from the Cloud IoT Core that was created.
  • GCP Registry ID
    • This should be obtained from the Cloud IoT Core that was created.
  • GCP Device ID
    • This should be obtained from the Cloud IoT Core that was created.
  • Private Key File
    • The Private Key File must be in PKCS8 DER format. See Google's documentation here on how to convert a PEM to PKCS8 DER format.
  • Algorithm
    • Algorithm type used by the key file
    • Options . Options are RS256 and ES256

Click on "Create New Cloud IoT Core Setting" to save create the new configuration setting.


Now the Google Cloud Injector module is connected to the Cloud IoT Core, we have to determine if there are are changes needed to the Tab Tag Agent tab to be able to push data.

...

If you do not have Ignition tags defined we will do that , that will be done in the next step with a tag tree depth that requires no additional Sparkplug settings.

...

Tip
Refer to the Ignition Tag Browser and Creating Tags documentation for assistance in configuring Ignition tags

...

Make sure that the Ignition Designer has read/write communications turned on by selecting the Project/Comm Read/Write button highlighted in the image below. 

Tip
Review the Inductive Automation Designer Interface documentation for additional assistance on setting the project communication mode

...