• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Unsolved HTTP Publisher datapoint change

    User help
    2
    2
    508
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mauricio.souza
      last edited by

      Hello all,

      I have set a HTTP Sender with 2 datapoints, that should be sent together to an external API, that is a integer number of running hours of a machine (as READ), and a timestamp in ISO format of the reading (as DATE, format e. g. 2020-05-04T10:56:00).
      My READ value is a datapoint that updates whenever the machine completes another working hour. My DATE value is a Meta datapoint, that converts the READ timestamp to ISO format, when that point changes.
      The Publisher is set to "Publish attribute changes".

      My problem is that when the READ value updates, the Publisher sends two separate messages, one with the READ value, and another one with the DATE value, and the receiving system won't accept that.
      Is there a way to make it send the two updated values at once? Or to make it only consider the "change" event of one of them?

      Thanks, and regards
      Mauricio

      1 Reply Last reply Reply Quote 0
      • CraigWebC
        CraigWeb
        last edited by

        Hi @mauricio-souza

        Your best option would be to use a script event handler and build an HTTP post which conforms to the system you are integrating to.
        Here are some links on how to use the HTTPbuilder
        https://forum.infiniteautomation.com/topic/3137/how-http-publisher-to-firebase-cloud-messenger/3

        Otherwise, you could customise the meta point to include the value and then only send the meta point on the publisher.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post