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.
- Navigate to IoT Core. Select devices from list.
- Create new device/devices. Enter following parameters:
- 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.
- Click Create.
- 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.
- To connect to GCP ,right click on GcpMqttDevice .