Versions Compared

Key

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

...

  • Mosqutto
    • Can be downloaded here.  Included in the link are instructions for various platforms.  Make sure in the end of installation the development libraries are available on your build path.
    • This is how one would do it in Ubuntu Linux 16.04

...

      • sudo ldconfig

 

With the above steps completed, run the following commands to get the sparkplug library and sample application:
cd ~/dev

git clone https://github.com/Cirrus-Link/Sparkplug.git
cd Sparkplug/client_libraries/c/
make
cd ~/dev/Sparkplug/sparkplug_b/stand_alone_examples/c/udt_example/

...

At this point the example.c file should be edited to properly reflect your MQTT server URL, port, credentials, etc.  Finally, build the application:
make

 

 

Now simply start the application with the following command: 
./example


At this point, the application will start, connect to the MQTT server, publish a Edge Node Birth Certificate, publish a Device Birth Certificate, and begin periodically reporting random data values to Ignition via MQTT Engine.  This can be verified via Ignition Designer.  Using a Web Browser, browse to the Ignition Gateway on your Ignition Gateway.  If it is running on your development machine, that is: http://localhost:8088.  You should see this: