CREATING A GOOGLE IOT CORE CONNECTION
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 Field | Description |
|---|---|
| Service Account | JSON key file of the service account that identifies you. |
| Cloud Region | Region where your project resides. |
Generate Service Account
-
Connect to your Google Cloud Platform, and select your project.

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

-
Click ADD.
-
Fill in the form. Principals is your Google email address. For the roles, set Cloud IoT Admin and Pub/Sub Admin.

-
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
-
In ThingPark Enterprise, click Connections -> + Add Connection -> ThingPark X IoT Flow.

-
In ThingPark X IoT Flow, click Google IoT Core in the list of connectors.

-
Fill in the form as in the example below and click Create.

Parameters marked with * are mandatory.
-
A notification confirms that the connection has been created.
-
The connection details open.
Creating a Connection With API
To do this, you need to use the Connections group resource:
POST /connectionsto create a new Connection instancePUT /connectionsto update a Connection instanceDELETE /connectionsto delete a Connection instance
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.
| Field | Description |
|---|---|
connectorId | Must be set to actility-google-iot. |
configuration/serviceAccount | Content of the JSON key file of your service account. |
configuration/cloudRegion | Cloud region of your registry. |
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
-
Go to your registries list: a tpx-registry registry appears.

-
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

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.
- Google IoT Core documentation: https://cloud.google.com/iot-core/docs/