Sending messages from Niagara to GCP

This procedure describes the steps to send messages from Niagara to GCP.

Connection is established between GCP and Niagara.

  1. Navigate to Config > Drivers > AbstractMqttDriverNetwork > GcpMqttDevice and double-click Points.
    MqttClientDriverPointManager window opens.

  2. To add MqttStringPublishPoint click New..
    A New window opens.

  3. Select MqttStringPublishPoint from the drop-down list and click OK.
    Another New window opens.

  4. Enter the following parameters:
    1. Name: Enter the name to be given to the point.
    2. Local Point: Enter the file path where the publish point is created.
    3. Topic: Enter the topic name as /devices/device_name/state, Enter the device name set in GCP console.
  5. Click OK. Navigate to AX property sheet of the point created.
  6. Navigate to Points > Proxy Ext > Set Value. Select any In slot and set value to desired text message. for example Hello World.
  7. Go to GCP Console, IoT Core > Devices and select the correct device in which the message was sent to. Select Configuration and State.
  8. In the Cloud Update section you should see a row with your message in base64 format.
  9. Click the row with the message, select text to see the message in text format.