riclolsen / json-scada

A portable and scalable SCADA/IIoT-I4.0/Gateway platform centered on the MongoDB database server.
https://riclolsen.github.io/json-scada/
GNU General Public License v3.0
292 stars 79 forks source link

MQTT/Sparkplug metric properties #152

Open gaillarddamien opened 1 day ago

gaillarddamien commented 1 day ago

MQTT/Sparkplug metrics may come with properties, but the driver can not handle them all.

At the moment,

Some of our devices publish MQTT/Sparkplug metrics with custom properties that go silently ignored, for they are not expected by the driver.

It would be really helpful if we could:

riclolsen commented 1 day ago

Hi Damien, I have made some changes. valueJson now captures the full metric data (as a JSON string). Can you check if this fulfills your need?

gaillarddamien commented 3 hours ago

Hi, thank you for the quick response. It seems to be working, and it looks like this could do the trick. It is a good idea to keep the whole metric.