bersim / OpenKPs

10 stars 9 forks source link

Subscribing to MQTT broker in RapidSCADA that outputs data in JSON format. #10

Open eamonn145 opened 6 years ago

eamonn145 commented 6 years ago

Hi, I have installed your driver into Rapid SCADA and seem to encounter a problem where the data from the MQTT broker is not being read in. Attached below are what the subscribed topics look like in the broker, and by putting in the topic name in the device config file we presumed it would read the value, but it did not? We know the data is being sent via JSON format, we are just wondering if there is any possible way the driver can be modified so that it reads this form of data.

No topic no topic

Topic topic

Thanks in advance for any help,

bersim commented 6 years ago

Hi,

The processing of the JSON format will be implemented in future versions.

2018-06-01 11:39 GMT+03:00 eamonn145 notifications@github.com:

Hi, I have installed your driver into Rapid SCADA and seem to encounter a problem where the data from the MQTT broker is not being read in. Attached below are what the subscribed topics look like in the broker, and by putting in the topic name in the device config file we presumed it would read the value, but it did not? We know the data is being sent via JSON format, we are just wondering if there is any possible way the driver can be modified so that it reads this form of data.

No topic [image: no topic] https://user-images.githubusercontent.com/39824246/40830927-8dd6c3ea-657f-11e8-8f3f-75a8391ea5a4.png

Topic [image: topic] https://user-images.githubusercontent.com/39824246/40830928-8ded8530-657f-11e8-90b7-01d4f51e18d7.png

Thanks in advance for any help,

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bersim/OpenKPs/issues/10, or mute the thread https://github.com/notifications/unsubscribe-auth/AKTLbcZSatLzEDCeElHfSfVPMLoXUV_bks5t4P3FgaJpZM4UWT_t .

kumajaya commented 4 years ago

Publishing in JSON format also a must for example for ThingsBoard and KEPServerEX. My own simple solution: https://github.com/kumajaya/scada-community/commit/a8a7bce35deb4c3f1e0ae604be3685b47d2e1027