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

Nested Service UUID Arrays #148

Open
bmg125 opened this issue Nov 6, 2017 · 0 comments
Open

Nested Service UUID Arrays #148

bmg125 opened this issue Nov 6, 2017 · 0 comments

Comments

@bmg125
Copy link

bmg125 commented Nov 6, 2017

I may be doing something incorrect, but there seems to be an issue when an array of serviceUUIDs is provided to the exports.startScan function in BLE.js (Line 141-142).

serviceUUIDs = getCanonicalUUIDArray(serviceUUIDs);
exec(onSuccess, onFail, 'BLE', 'startScan', [serviceUUIDs]);

getCanonicalUUIDArray(serviceUUIDs); returns an array of Service UUIDs. This is then wrapped in another array on the next line. When I execute this code, I get no results. However, when I removed the outer array, the BLE Devices that match the serviceUUIDs I provide are correctly scanned.

I am trying to use the cordova-plugin-eddystone plugin which passes the eddystone service id by default. When I bypass this and pass no service uuids it works as expected.

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

1 participant