React-native-ble-plx: Communication between Phones

Created on 8 Apr 2020  路  3Comments  路  Source: Polidea/react-native-ble-plx

Hi,
First of all, thanks for this great lib and clear doc.
I just read in the readme that the lib does not allow communicating between phones using BLE (Peripheral support). I'm a little confuse about the term "communicating" . Can scanning phone devices be considered as a communication ... ?

I'm very new to BLE APIs and capabilities. I want to achieve a "simple" thing. Let's say I'm developing the APP-X. I want to be able to scan other phone around me, with APP-X installed (exactly like this app here https://www.tracetogether.gov.sg/ ) . So I don't want to establish a connection. I just want to scan and filter the wanted devices via a "simple" metadata (advertising data ? specific for my app) within the signal emitted by the concerned phones. I'm stuck because Idk how to "emit" that custom signal...

Can you please help me to find a way to do this in RN ?

Many thanks 馃檹

question stale

All 3 comments

This library doesn't support Peripheral mode. Please look at existing tracing implementations and try to reuse their knowledge / create RN native modules as needed.

@BlackCod3 its not implemented in this library. @Cierpliwy is correct you need to implement your own. Use the concept of https://github.com/opentrace-community.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings