Giter Club home page Giter Club logo

Comments (4)

IanHarvey avatar IanHarvey commented on August 22, 2024

So, notifications were implemented in version 0.9.0 of bluepy, which I've just made some documentation for - see http://ianharvey.github.io/bluepy-doc/notifications.html .

The SensorTag keypress service code uses it as an example.

from bluepy.

parkerlreed avatar parkerlreed commented on August 22, 2024

@IanHarvey Do you have a functioning example? (Not just overview) I've been trying to implement that script as is and python2 and 3 complain about tabs/spaces/etc for that p variable. I've tried fixing it to no avail.

from bluepy.

IanHarvey avatar IanHarvey commented on August 22, 2024

Ah - if you just cut-and-paste the code in the documentation there will be a problem with this bit:

    def handleNotification(self, cHandle, data):
        # ... perhaps check cHandle
        # ... process 'data'

...because Python need some actual code after the def, not just comments. Try something like this:

    def handleNotification(self, cHandle, data):
        print "Data is", repr(data)

from bluepy.

prasanthgiri2010 avatar prasanthgiri2010 commented on August 22, 2024

hi
My doubt is how to enable notifications- sensorTag for multible characteristics like temperature , humidity ???
Please provide some example

from bluepy.

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.