Prerequisites:
Connection is established between GCP and
Niagara.
- Navigate to and double-click Points.
MqttClientDriverPointManager window opens.
- To add MqttStringSubscribePoint click New..
- Select MqttStringSubscribePoint 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.
- Topic: Enter the topic name as /devices/device_name/commands/#, Enter the device name set in GCP console,
- Click OK. Navigate to AX Property Sheet of the point created.
- Right click on device, .
- Go to GCP Console, and select the correct device in which the point was set.
- Select Send Command. Select Text. Type the command to send.
- Input subfolder (Topic) in subfolder window. Click Send Command.
- Return to
Niagara console and view the AX property Sheet of the device. Expand Points and the output of the subscribe point should be the text or message sent from the console.