Skip to content

Provide signatures for public functions that can take strings as opposed to BLEUUIDs #31

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

Closed
nkolban opened this issue Aug 8, 2017 · 2 comments

Comments

@nkolban
Copy link
Owner

nkolban commented Aug 8, 2017

There are public functions today that take BLEUUIDs ... provide alternatives/over-rides that accept strings.

For example, where we have a function that looks like:

void foo(BLEUUID uuid)

provide an additional signature that looks like:

void foo(char* uuid) {
   foo(BLEUUID(std::string(uuid)));
}

and

void foo(std::string uuid) {
   foo(BLEUUID(uuid));
}
@copercini
Copy link
Contributor

Working on it =)

@nkolban
Copy link
Owner Author

nkolban commented Aug 9, 2017

@copercini provided an excellent implementation that has been pushed and merged. I think we can close this issue for the time being.

@nkolban nkolban closed this as completed Aug 9, 2017
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

No branches or pull requests

2 participants