Search the Community

Showing results for tags 'JSON'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 2 results

  1. Exor JMobile MQTT problem

    Hi,have anybody managed to put data from a MQTT source on a JMobile touchscreen?  I have managed to get the HMI to send data from the PLC to the MQTT broker, but not the other way. Under Tags I have made a couple of Variables:prot2  QT04_Fukt TT03_Temp of type string [8], under MQTT I have most likely the correct IP and port since I can send data. In the "Data(sub) tab the topic is esp32/mqtt/data Payload [ { "tagName": "${tagName}", "value": "${value}" } ]  The data going through the broker looks like this: Client mosq-a3kUbQ8rf0VD4TIZuw received PUBLISH (d0, q0, r0, m0, 'esp32/mqtt/data/ [{"tagName": "QT04_Fukt", "value": 29 },{"tagName": "TT03_Temp", "value": 25 }]', ... (5 bytes)) According to the online help things should look like this To match an incoming message like: Geir
  2. I do a fun hack today. I need outdoor temperature for my home boiler controller. As I do not have outdoor temp sensor ready yet i get actual temperature from Internet. If someone is interested the code is for download here https://github.com/Vladimirek/BR-PLC-code . The code call http://openweathermap.org/current and parse JSON response to structure. It can be extended to get weather forecast too, which may be more interested. Maybe latter. enjoy.