Mqtt publisher

Forum Home Forums Communicating with Devices Mqtt publisher

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #18189
    laih
    Participant

    2026-07-27 15:26:03 Session with the device [5] dev_pub
    Request current data
    OK
    Publish data
    Send /1004/command = {“Val”:0}
    Send /1004/command = {“Val”:0}
    OK

    2026-07-27 15:26:32 Receive /v1/devices/1004/datas = {
    “humidity”:12,

    Subscribed devices: 4
    Hello from JS. Topic: /v1/devices/1004/datas
    {
    “humidity”:12,
    “temperature”:7
    }
    The data published by SCADA and the subscribed data vary significantly. How to specify the attribute names?

    #18190
    laih
    Participant

    Send /1004/command = {“Val”:0}
    @val Why is the value 0? I wrote the value in the “send command”, but it didn’t work. An error “invalid command” occurred.

    #18195
    Mikhail
    Moderator

    MQTT Publisher Driver writes each channel to it’s own topic. It cannot write 2 channel in the same topic, e.g., { “humidity”:12, “temperature”:7 }

    Please clarify if you use MQTT Client or MQTT Publisher Driver?

    #18196
    Mikhail
    Moderator

    Why is the value 0? I wrote the value in the “send command”

    Please provide screenshot of the settings, and a command that was sent.

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