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

Enable startAdvertising with both a region and a list of UUIDs #50

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

elefthei
Copy link

Hi BlueCapKit maintainer,

The peripheralManager has two versions of the startAdvertising function, one takes in a beacon region as an argument and the other one takes a list of UUIDs to advertise as an argument. This MR adds a version of startAdvertising that takes in both arguments, as well as the peripheral name. We found the more generic case to give us better flexibility. We also wrote unit tests make sure the expected behavior happens either when self.isAdvertising is on or off. We would like to merge that to upstream as soon as possible.

@troystribling
Copy link
Owner

troystribling commented Dec 19, 2016

I am surprised this works. The advertisement packet is not that large. Can an iBeacon and services both be advertised?

Could you also write a simple test app, based on the PeripheralManager app, that advertises an iBeacon and services. Place it in the examples directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants