Negative event option

Simplify IoT Development.

Moderators: lily.li, violet, seth.welday

Post Reply
bjarne.matzen
Pre-kindergarten
Pre-kindergarten
Posts: 12
Joined: Tue Apr 26, 2016 2:36 pm

Negative event option

Post by bjarne.matzen » Tue Apr 26, 2016 3:42 pm

Is there any way to get a "negative" event option? For example: "Button released".

Wio
Pre-kindergarten
Pre-kindergarten
Posts: 19
Joined: Thu Apr 28, 2016 4:07 am

Re: Negative event option

Post by Wio » Mon May 02, 2016 1:32 am

What are u using? In IFTTT you can select equal 0 nor a generic digital input. This should work.

teng.wang
Pre-kindergarten
Pre-kindergarten
Posts: 37
Joined: Fri Apr 08, 2016 10:50 am

Re: Negative event option

Post by teng.wang » Tue May 03, 2016 11:16 am

Wio wrote:What are u using? In IFTTT you can select equal 0 nor a generic digital input. This should work.
Good idea.

But IFTTT trigger every 5-15 minutes, please notice it.

bjarne.matzen
Pre-kindergarten
Pre-kindergarten
Posts: 12
Joined: Tue Apr 26, 2016 2:36 pm

Re: Negative event option

Post by bjarne.matzen » Tue May 03, 2016 1:01 pm

Sure - I can detect that a button is released by doing a GET against the button. But what I need is an event (WebSockets) that fires once when the button is pressed and once when the button is released. In general it is far more useful and efficient to get events rather than polling. This goes for pretty much all the sensors. I mentioned in a previous post that I'd like an event when the accelerometer detects a shake (or movement above a certain threshold) - but you can extend that to all sensors (distance on IR interrupter below x m, distance on US distance sensor below x cm and so on). Having this capability would make Wio so much more powerful.

Post Reply