Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In Devices>Nodes, add a node for the newly created MQTT Channel. The Primary Station primary station's configuration is done made as follows:

Code Block
URL = <Host Name> Port = <Port Number>
Client ID = <Device Id>
Username = <Host Name>/<Device Id> Password = <SAS Token>
TLS Version = <TLSv1.0>
X059 Certificate = <Certificate thumbprint>  (optional)  QoS = <Quality of Service>
Keep Alive = <Message sent to Broker to prevent the link from being broken> (in seconds)

...

Finally, in Devices>Points, you fill in the address information is filled according to the syntax below:

Code Block
devices/<Device Id>/messages/events/

For our the device, the correct topic is:

Code Block
devices/NewDevice/messages/events/



Once the Device device configuration is complete, go to Run > Startup Run>Startup and execute the project. Open the Trace Window TraceWindow (with the Debug and Devices options enabled) and monitor the communication exchange.


Back on VSCode, you can should see the received messages on in the Output Windowoutput window.