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.
HTTP Publisher datapoint change
-
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 -
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/3Otherwise, you could customise the meta point to include the value and then only send the meta point on the publisher.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login