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).
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.
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.