Jump to content









Photo

How to stop a Http Post on listener event

listener alarm stop range

  • Please log in to reply
3 replies to this topic

#1 Santiago_MC

Santiago_MC

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 26 November 2014 - 08:10 AM

Hi everybody!

 

I am trying to send alarms via a Listener to the Ducksboard platform, the POST request is working but I´ve got a problem.

 

I´m measuring some data, when this data is over X the listener send the POST request, but it´s still doing until the data are lower than X.

So, how I have to do for send the POST request only once?

 

 

Cheers.



 



#2 jpastor

jpastor

    Development leader

  • Administrators
  • 159 posts

Posted 28 November 2014 - 11:57 AM


Hello Santiago

Could you give us more information about your listener? Perhaps you could share your code to check if it is correct.

The listeners functionality in Carriots is very simple. When the event occurs in the associated device context this expression is evaluated to determine which execution path it must take, "Then" or "Else" expression.

If the listener sends more than one POST request, should it be because the listener is invoked more than once.

Enjoy Carriots!



#3 Santiago_MC

Santiago_MC

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 04 December 2014 - 09:19 AM

Hi!

 

Finally I´ve changed the data source to send only two states, and listener works great.

:)



#4 jpastor

jpastor

    Development leader

  • Administrators
  • 159 posts

Posted 15 December 2014 - 11:23 AM

Good job ;)







Also tagged with one or more of these keywords: listener, alarm, stop, range

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users