Giter Club home page Giter Club logo

Comments (4)

NateEaton avatar NateEaton commented on August 22, 2024 1

I know this is a stale topic but I need the same thing, access to the raw advertisement data. I don't see any ref to rawData in the 0.9.11 docs... was it dropped? Or just still not documented?

from bluepy.

ShuffleBox avatar ShuffleBox commented on August 22, 2024

I've used PyGattlib for BLE device discovery. https://bitbucket.org/OscarAcena/pygattlib
Perhaps worth a look.

from bluepy.

IanHarvey avatar IanHarvey commented on August 22, 2024

Scanning is now available (albeit there are no docs yet) in v/0.9.10, just out.

The raw advertisement payloads come over as the rawData attribute of a ScanEntry object, which is passed to the delegate registered with a Scanner object. There's now a program test/scan.py which should give you the basic idea.

Thanks
Ian

from bluepy.

B03901108 avatar B03901108 commented on August 22, 2024

I share similar feedback with @NateEaton that some class members like rawData and scanData are not available in official documents. I had to find them by diving into the source code (btle.py). Just for the convenience of others working on low-level BLE stuff, rawData provides the raw payload of the latest observed advertisement, while scanData provides the accumulated AD Data keyed by AD Type. (Both show payload/advertising data in bytes.)

Suppose the current scan request invites no scan responses, but an earlier scan request invited a scan response. rawBinary would imply the lack of scan response, while scanData would keep some information from the earlier scan response.

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.