Coder Social home page Coder Social logo

Comments (10)

guymcswain avatar guymcswain commented on June 2, 2024

The notifier is implemented for either edge. Use the level argument to filter for the edge you want. It was a decision that I made, quite a while ago, to keep things simple.

from pigpio-client.

jmbldwn avatar jmbldwn commented on June 2, 2024

Thanks. While it does mean twice as much traffic over the socket, I don't think it's a big deal.

from pigpio-client.

guymcswain avatar guymcswain commented on June 2, 2024

Twice the traffic is correct. My thinking was if the network bandwidth became an issue that I would write a c code to run directly on the pi or something else.

from pigpio-client.

jmbldwn avatar jmbldwn commented on June 2, 2024

Does the pigpiod socket protocol support configuring alerts for one edge? It's hard to tell from the docs. If it doesn't it would require changes to the daemon as well, which would be a lot of work.

from pigpio-client.

jmbldwn avatar jmbldwn commented on June 2, 2024

Looks like the pigs protocol can only turn notifications on and off, no filtering on edges, so without a feature update to the daemon this isn't possible.

from pigpio-client.

guymcswain avatar guymcswain commented on June 2, 2024

You may be right. The python client filters but it may do so only after having received both edges (traffic).

from pigpio-client.

jmbldwn avatar jmbldwn commented on June 2, 2024

So this is an optimization. The pigpio repo has a long list of issues, but might be worth adding this as a feature request.

from pigpio-client.

jmbldwn avatar jmbldwn commented on June 2, 2024

OK, I logged an issue on pigpio for this. No point in worrying about it here on the client until we get daemon support.

from pigpio-client.

guymcswain avatar guymcswain commented on June 2, 2024

Ok, well that will come back to me since I'm currently the maintainer of pigpio.

from pigpio-client.

jmbldwn avatar jmbldwn commented on June 2, 2024

:-) You're a star. Let me know if/how I can help.

from pigpio-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.