Skip to main content
1-Visitor
June 13, 2022
Question

Sparkplug Specification support in ThingWorx

  • June 13, 2022
  • 3 replies
  • 2173 views

Hi All,

Do we have any kind of decoders available for ThingWorx to read the MQTT data with Sparkplug Specification?

 

Currently I can read the data in encrypted format but I wanted to get it decrypted and get it as a JSON. Any help to understand this is appreciated.

 

Thanks.

3 replies

Support
June 23, 2022

Hi @VK_10079185.

 

Unless one of our developers in the community have experience with this, you may have to Google it for more information.  Have you tried decrypting it before reaching ThingWorx?

 

Regards.

 

--Sharon

11-Garnet
October 14, 2022

+1 on this...

19-Tanzanite
October 19, 2022

After briefly looking on internet I was able to find a Java example here that you probably can take as an example to build your own Java extension for decoding the message:

https://github.com/Cirrus-Link/Sparkplug/blob/master/sparkplug_b/stand_alone_examples/java/src/main/java/com/cirruslink/example/SparkplugExample.java

I'm pretty sure there are also Javascript examples, though not sure about their dependencies hence my suggestion to use Java.

11-Garnet
October 19, 2022

My research has provided similar results, that the next step will probably be an extension if the project goes that far.  Thanks for the comment.