Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exposed GAP.setAdvertisedServiceData to BLELocalDevice #110

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cotdp
Copy link

@cotdp cotdp commented Sep 2, 2020

This change is intended to allow Service Data to be set from be BLELocalDevice. The methods required already existed but were protected. I have moved these into the public scope and added a method on BLELocalDevice to use them.

Also included is a short example which emulates a Xiami Mijia climate sensor. This product encodes the temperature and humidity measurements into the service data, allowing BLE devices to see the current measurements without the need to connect and interrogate it.

Running the sample code on an Arduino Nano 33 BLE Sense with the HTS sensor allows you to plug in real measurements.

@CLAassistant
Copy link

CLAassistant commented Apr 9, 2021

CLA assistant check
All committers have signed the CLA.

@per1234 per1234 added type: enhancement Proposed improvement topic: code Related to content of the project itself labels Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants