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
303 stars 83 forks source link

MQTT/Sparkplug metric properties #152

Open gaillarddamien opened 1 month ago

gaillarddamien commented 1 month 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 month 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 1 month 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.