Skip to main content
Jun 13, 2022 2:03 PM UTC
Question

Sparkplug Specification support in ThingWorx

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.

5 replies

Jun 23, 2022 6:15 PM UTC

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

Oct 14, 2022 6:51 PM UTC

+1 on this...

Oct 19, 2022 6:26 AM UTC

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.

Oct 19, 2022 12:21 PM UTC

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.