Setting up ClearBlade MQTT broker

Before you can connect the ClearBlade MQTT broker, follow the setup steps described in this section.

  1. Activate ClearBlade IoT from the Google Cloud Marketplace.
    1. Navigate to the ClearBlade IoT Core offer page on the Google Cloud Platform Marketplace ( https://console.cloud.google.com/marketplace) and click Subscribe.
    2. Complete the forms to register your IoT Core Developer account, and click Complete.
  2. Create a Google Cloud service account with the necessary permissions. A service account is required to migrate and run IoT Core.
    1. Select your desired project area.
    2. From the flyout menu, open the IAM & Admin Cloud services.


    3. From the left menu pane, select Service Accounts, and click CREATE SERVICE ACCOUNT from the top menu bar.
    4. 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.

    5. Grant the following roles to the service account:


    6. Leave the grant users access to the service account field blank.
    7. Select the newly created account by clicking the email hyperlink.


    8. On the Service Account page, select KEYS from the top menu bar, and click ADD KEY > Create new key.


    9. Choose JSON as the key type and click Create.
      A new .json key file is downloaded to your device.