react-native-ble-manager icon indicating copy to clipboard operation
react-native-ble-manager copied to clipboard

format manufactured data

Open Gueoff opened this issue 5 years ago • 1 comments

Hello!

Scan function return different informations for manufacturerData field. In ios we have directly the company id instead of android where we need to search through the manufacturerData array to get it. Is an implementation of the getManufacturerSpecificData function (android only) ?

https://developer.android.com/reference/android/bluetooth/le/ScanRecord.html#getManufacturerSpecificData()

We can also do it in JS by searching for informations : https://www.silabs.com/community/wireless/bluetooth/knowledge-base.entry.html/2017/11/14/bluetooth_advertisin-zCHh

Gueoff avatar Feb 27 '20 09:02 Gueoff

Hi @Gueoff , you can make a PR with the specific method for Android.

marcosinigaglia avatar Feb 27 '20 09:02 marcosinigaglia