Prerequisites:
GcpMqttDevice is added from the palette to the driver.
- Navigate to IoT Core. Select devices from list.
- Create new device/devices. Enter following parameters:
- Device ID: Enter Device ID
- 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
Niagara Console public key is automatically created inside the mentioned directory C:\Users\user_name\Niagara4.x\Brand\stations\stationName\shared\JwtKeys\AbstractMqttDriverNetwork.
- 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 .