How to extract MQTT message completely

Forum Home Forums Communicating with Devices How to extract MQTT message completely

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #14495
    kcks66
    Participant

    Hi Mikhail,

    I am testing a MQTT client connection setup in V6. I follow the forum and managed to connect to Local Mosquitto Broker and subscribe a topic. The message is look like below:

    https://ibb.co/rp62J0s

    I configure the Device Properties like below:

    https://ibb.co/Jxn6ZBH

    I created a JS file and locate at C:\Program Files\SCADA\ScadaComm\Config as suggest:

    https://ibb.co/xf86dvh

    The only thing I couldn’t follow is the Sub items which I don’t know what to fill into the String Collection Editor. My String Collection Editor is different from those from forum example.

    I got error:

    https://ibb.co/G7TgjWF

    As the result, I couldn’t get the Voltage L1, L2 and L3 values:

    https://ibb.co/5xc59yK

    Need your advice on how to complete my configuration.
    Thank you.

    #14498
    Mikhail
    Moderator

    Hi,
    You need subitems as Voltage L1, Voltage L2 and Voltage L3. And only 1 subscription,

    #14500
    kcks66
    Participant

    Hi Mikhail,

    Could you give example of how to write in subitems for my case?

    #14501
    kcks66
    Participant

    I try like this but no luck

    https://ibb.co/BjrrfFc

    #14503
    Mikhail
    Moderator

    Hi,
    Create only 1 subscription, named Voltage (delete 2 others). The subscription should contain 3 sub items (3 lines).

    #14506
    kcks66
    Participant

    Hi Mikhail,

    That’s great. I can read all the Voltage L1, L2 and L3 now.
    Thank you.

    #14508
    Mikhail
    Moderator

    Could you share the final settings? It can be useful for other users.

    #14512
    kcks66
    Participant

    Hi Mikhail,

    My final setting, with many other parameters:

    https://ibb.co/Wsr8HW3

    #14513
    Mikhail
    Moderator

    Thank you.

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.