Before you can connect the ClearBlade MQTT broker, follow the setup steps described in this section.
- Activate ClearBlade IoT from the Google Cloud Marketplace.
- Navigate to the ClearBlade IoT Core offer page on the Google Cloud Platform Marketplace ( https://console.cloud.google.com/marketplace) and click Subscribe.
- Complete the forms to register your IoT Core Developer account, and click Complete.
- Create a Google Cloud service account with the necessary permissions. A service account is required to migrate and run IoT Core.
- Select your desired project area.
- From the flyout menu, open the IAM & Admin Cloud services.
- From the left menu pane, select Service Accounts, and click CREATE SERVICE ACCOUNT from the top menu bar.
- Complete the account details as follows:
-
Service account name: ClearBlade IoT Core service account
-
Account description: This account is used by the ClearBlade IoT Core service to flow MQTT-based device message data into the Google Pub/Sub offering. It integrates with Cloud Logging and Cloud Monitoring services.
- Grant the following roles to the service account:
- Leave the grant users access to the service account field blank.
- Select the newly created account by clicking the email hyperlink.
- On the Service Account page, select KEYS from the top menu bar, and click .
- Choose JSON as the key type and click Create.
A new .json key file is downloaded to your device.