Skip to main content
Version: 1.8.5

CREATING A GOOGLE IOT CORE CONNECTION

Warning

Google retired Cloud IoT Core on August 16, 2023: new Google IoT Core connections cannot work. This page is kept for reference only.

Available since ThingPark X IoT Flow 1.7.1.

The Google IoT Core connection establishes a unidirectional messaging transport link to the cloud provider.

Collecting Expected Information​

Parameters required

UI FieldDescription
Service AccountJSON key file of the service account that identifies you.
Cloud RegionRegion where your project resides.

Generate Service Account​

  1. Connect to your Google Cloud Platform, and select your project. Select your project

  2. Search for the Service Accounts product, and click it. Search for Service Accounts

  3. Click ADD.

  4. Fill in the form. Principals is your Google email address. For the roles, set Cloud IoT Admin and Pub/Sub Admin. Roles of the service account

  5. You can now copy the JSON key file of your service account.

Choose Cloud Region​

Three cloud regions are available:

  • us-central1
  • europe-west1
  • asia-east1

Creating a Connection With UI​

  1. In ThingPark Enterprise, click Connections -> + Add Connection -> ThingPark X IoT Flow. Add a ThingPark X IoT Flow connection in ThingPark Enterprise

  2. In ThingPark X IoT Flow, click Google IoT Core in the list of connectors. Select the Google IoT Core connector

  3. Fill in the form as in the example below and click Create. Set your Google IoT Core connection

Note

Parameters marked with * are mandatory.

  1. A notification confirms that the connection has been created.

  2. The connection details open.

Creating a Connection With API​

To do this, you need to use the Connections group resource:

  • POST /connections to create a new Connection instance
  • PUT /connections to update a Connection instance
  • DELETE /connections to delete a Connection instance
Note

We follow the REST-full API pattern, when updating configuration properties for a connection resource. Thus, you must also provide the whole configuration again.

Example for creation of a new connection instance:

POST /connections
{
"name": "Actility To Google",
"connectorId": "actility-google-iot",
"configuration": {
"serviceAccount": {your service account JSON file},
"cloudRegion": "us-central1"
}
}

The following table lists the properties applicable to a connection instance.

FieldDescription
connectorIdMust be set to actility-google-iot.
configuration/serviceAccountContent of the JSON key file of your service account.
configuration/cloudRegionCloud region of your registry.
Important note

All properties are not present in this example. You can check the rest of these properties in the common parameters section.

Displaying Information to Know if It Worked​

  1. Go to your registries list: a tpx-registry registry appears. Registries list

  2. If you have associated devices with your Google IoT Core connection in ThingPark Enterprise, you see devices and gateways, depending on the number of devices associated with the connection.

Gateways​

Gateways

Devices​

Devices

Devices are named with the TPX_ prefix followed by the DevEUI of the device.

Limitations​

The limitations depend on your Google Cloud account plan.

Troubleshooting​

There is no known issue with the Google IoT Core connector.