LOGIN
Nouman Tahir
15
Mastermind
Mobile and iOT Applications Developer
 · SargodhaPakistan
Share
Report
Get Link
STATUS

React Native BLE findings

So, I have been researching various ble libraries built for react native framework including react-native-ble-plx, react-native-ble-connect, react-native-ble-manager and react-native-ble. Out of all these, react-native-ble-plx is the most well written and promising yet it seems this one along with all others do not a making iPhone act as a peripheral device which is a requirement for our app.

Tomorrow, I ll continue looking for making it work using native iOS. My first goal will be to make it work as peripheral and transfer data to some host iPhone and then find a way to make host device visible to other iPhones as well

Any suggestions from community are welcome.

iOs
Bluetooth
Contributions
Nouman Tahir

Knowledge in bluetooth

3 likes 
Like
Award Contribution
Load 1 previous comments
Share
Report
Get Link

You’re unsure of any technology that is able to allow that feature?

Like
0 like 
Award Contribution
Nouman Tahir
15
Mastermind
Mobile and iOT Applications Developer
 · SargodhaPakistan
Share
Report
Get Link

Still hunting for the best technology yet I have found something interested related what we need…check this out if you are interested…https://developer.apple.com/library/content/samplecode/BTLE_Transfer/Introduction/Intro.html

Like
0 like 
Award Contribution
Nouman Tahir
15
Mastermind
Mobile and iOT Applications Developer
 · SargodhaPakistan
Share
Report
Get Link

the link above is for a sample created by Apple that lets one iphone running in peripheral mode transfer data to another iphone or iOS device running in host mode…

Although this can server as a backbone for what we are looking for yet there is still limitations, one being the device running in peripheral mode cannot connect or search for other devices/users nearby untill the connection with first iphone is broken which does make sense though, what I am thinking is if our target is only transfer that specific data we have plans for we can be good with limited time connection strategy…means we search, connect, transfer, break connection and be available for next connection.

Like
1 like 
Award Contribution
Josh Pinkley
10
Top Contributor
 · FredericktownU.S.
Share
Report
Get Link

A while back I was reading about an app that used Bluetooth to find other devices & then would set up a private WiFi network between the devices for sending/receiving data. I don’t know much about phones so I’m not sure if this would be something worth looking into or not.

Like
1 like 
Award Contribution
Nouman Tahir
15
Mastermind
Mobile and iOT Applications Developer
 · SargodhaPakistan
Share
Report
Get Link

Josh Pinkley, I would say we are at a tie between two BT technologies…

Regular bluetooth does not share any device/ app related information during scan process, means we cannot tell if the discovered device have our app installed or not until it’s paired and afterwards apps are running in foreground. But once connected, each device will still be able to search other devices and connect with them

While in case of BLE, during scan other relevant information can become visible but other device will have to be running in peripheral mode that would mean it wont be able to search for users. in other words, if three users are searching for users nearby, they wont be able to see each other on radar as they ll have to be running in host mode. Similar is the case during connection, in a connection the device in peripheral mode will neither be visible to other host devices nor it will be able to search and connect to others

Like
1 like 
Award Contribution
Josh Pinkley
10
Top Contributor
 · FredericktownU.S.
Share
Report
Get Link

Okay, I understand now! Thanks for taking the time to explain the difference in the two for me.

Like
1 like 
Award Contribution
Leave a reply...
DISCOVER
CHAT
ALERTS
DISCUSSIONS
FEED
New Post
Start Project
Online Users
Share Link
Help