thegecko / bleat

Abstraction library for hiding differences in JavaScript BLE APIs
MIT License
48 stars 13 forks source link

filter.services #36

Closed vladi4k closed 8 years ago

vladi4k commented 8 years ago

Hi, the function: Filter Device by Advertising-Service in "web-ble" is don't work.

I found that "deviceInfo.uuid" is empty. The Evothings-API saves the Service-IDs to "deviceInfo.adData.serviceUUIDs"

I replace the line return (deviceInfo.uuids.indexOf(serviceUUID) > -1);

with return (deviceInfo.adData.serviceUUIDs.indexOf(serviceUUID) > -1);

and it works!