Creating device in GCP

Once the GcpMqttDevice is configured in the Workbench, you need to add the device in GCP console.

GcpMqttDevice is added from the palette to the driver.

  1. Navigate to IoT Core. Select devices from list.
  2. Create new device/devices. Enter following parameters:
    1. Device ID: Enter Device ID
    2. Under Authentication. Enter or Upload public key of device created in Workbench.
      Note: One public key per authenticator is added in Workbench. I.e., when an Gcp Authenticator is added from the palette, a public key is automatically created inside the mentioned directory if the station is started from Application Director C:\ProgramData\Niagara4.x\Brand\stations\stationName\shared\JwtKeys\AbstractMqttDriverNetwork. If the station is started from NiagaraConsole public key is automatically created inside the mentioned directory C:\Users\user_name\Niagara4.x\Brand\stations\stationName\shared\JwtKeys\AbstractMqttDriverNetwork.
  3. Select the public key corresponding to the device name in Workbench. I.e., If device name in Workbench is device1 then public key will be device1.pem. Select the correct public key and upload or copy and paste the contents into the text box in IoT Core.
  4. Click Create.
  5. Navigate to Workbench and update device Id under Gcp IoT Parameters with device Id of newly created device in GCP console, then connect to device from Workbench.
  6. To connect to GCP ,right click on GcpMqttDevice Actions > Connect.