vitorpamplona / react-native-ble-advertiser

Bluetooth Advertiser/Scanner for React Native.
60 stars 38 forks source link

Manufacturer specific data #24

Closed mathiasvdb1998 closed 3 years ago

mathiasvdb1998 commented 3 years ago

For my master thesis I'm trying to implement a BLE advertiser to send BLE packets for an indoor positioning system. I received some info about the packet format and the manufacturer specific data from the manufacturer of the indoor positioning system.

I just don't know if I need to add the company ID in the manufacturer data when I start broadcasting.

I also get an error when I try to set the company ID.

Can someone help me please?

vitorpamplona commented 3 years ago

Hi Mathias,

You don't need to, but it's a way to keep the Advertising going on in the background in some android phones.

vitorpamplona commented 3 years ago

Also, please check the example project for the setCompanyId.

mathiasvdb1998 commented 3 years ago

Hi Vitor

Thanks for the quick response. I had a look at the example before and in my mind I set the CompanyID the right way.

Maybe you can find what i'm doing wrong?

vitorpamplona commented 3 years ago

Aren't you redefining BLEAdvertiser?

mathiasvdb1998 commented 3 years ago

That was pretty stupid of me. I changed the name of my component, but I still get the same error when I call BLEAdvertiser.setCompanyId(0x00c7).

lnogueir commented 2 years ago

@mathiasvdb1998 were you able to resolve the issue at all? I have the same problem.