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

Request: Add gap_parse_service_data to mjs #16

Open
danielknox opened this issue Jun 18, 2019 · 1 comment
Open

Request: Add gap_parse_service_data to mjs #16

danielknox opened this issue Jun 18, 2019 · 1 comment

Comments

@danielknox
Copy link

mgos_bt_gap_parse_service_data() has recently been added to the BT-Common C library. Could a wrapper be added to the MJS library, with example of use? The benefit of this would allow users to see if an advertising device has a service uuid that they might be interested in before attempting to open a connection to a device. The current example connects to device based on local name (many devices do not use local names) and then scans for the services that device offers.

@rojer
Copy link
Contributor

rojer commented Jun 18, 2019

this makes sense, and if you send a PR it will happen sooner.
you can use other wrapped functions in this library as a guide how to do it.

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