Detect states changes under 1 second

1. What OS? (Wheezy or Jessie)

Jessie

2. What class/size SD card? (ex. class 10 16gb)


3. What Model Pi? (A+, A, B+, B, Pi2)

Pi2

4. Please describe the bug / issue. Attaching any relevant screenshots would be very helpful! Thanks in advance.

I have created a trigger for an output widget, so every time it goes online to trigger a notification. The problem is that the output only change state for about 1 second and the cayenne is no capable of triggering so fast. Any way to work around??

Regards

1 Like

I’ve seen this too, if monitoring one of the GPIO pins, if the Input is under one second, cayenne misses it and ignores it.

1 Like

I’m assuming it’s due to the driver they are using for the GPIO. In WebIOPi there was no edge detection and you had to rely on running your loops fast enough to detect your events. Running your loop every 0.1 seconds pretty much ensured you would detect your event but also killed your pi to the point that you couldn’t do anything else on it.

@bestes /@eptak can confirm

right, we cannot detect change under 1s.
this is something we need to improve

1 Like

FYI I moved this to Ideas / Suggestions so we can put it in our roadmap.

-B

right, we cannot detect change under 1s.
this is something we need to improve

Ya. I noticed.
My doorbell application doesn’t detect button pushes.
Very disconcerting.
The loop timing should be a variable.

Bandwidth isn’t an issue- I usually put my home IoT stuff on a segregated/segmented WiFi/Ethernet