Prerequisites:
Connection is established between GCP and
Niagara.
- Navigate to and double-click Points.
MqttClientDriverPointManager window opens.
- To add MqttStringPublishPoint click New..
- Select MqttStringPublishPoint from the drop-down list and click OK.
Another
New window opens.
- Enter the following parameters:
- Name: Enter the name to be given to the point.
- Local Point: Enter the file path where the publish point is created.
- Topic: Enter the topic name as /devices/device_name/state, Enter the device name set in GCP console.
- Click OK. Navigate to AX property sheet of the point created.
- Navigate to . Select any
In slot and set value to desired text message. for example Hello World.
- Go to GCP Console, and select the correct device in which the message was sent to. Select Configuration and State.
- In the Cloud Update section you should see a row with your message in base64 format.
- Click the row with the message, select text to see the message in text format.