Git Product home page Git Product logo

Comments (3)

bjoernQ avatar bjoernQ commented on July 20, 2024

The advertising data is just what the device announces and the gatt! macro is what the central device will get during discovery.

e.g. 0x1809 is HEALTH_THERMOMETER_SERVICE but the example doesn't really have that service. It's unusual but it's just a simple example here

from esp-wifi-sys.

brandonros avatar brandonros commented on July 20, 2024

does the 0x1809 HEALTH_THERMOMETER_SERVICE need to match the service UUID used in the gatt! macro?

from esp-wifi-sys.

bjoernQ avatar bjoernQ commented on July 20, 2024

Technically it doesn't need to match. The advertising data is what a device "sees" when scanning for BLE devices while the services it will see during discovery (i.e. when it connects to the device) might be different ones.

Also, the amount of data you can fit into the advertising packet is limited. If you control both ends of the communication you can use whatever works for you for the advertising data. If you don't control the BLE central device then you need to know what the central device is looking for to match that

from esp-wifi-sys.

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.