alexkendall / react-native-bluetooth-cross-platform

Cross-Platform Bluetooth & WiFi React Native Module. Powered by underdark http://underdark.io/.
179 stars 35 forks source link

Underdark feedback for developers of React bindings #8

Open virl opened 7 years ago

virl commented 7 years ago

Greetings! My nickname is Virl and I'm author of Underdark libraries.

Feel free to ask me here any questions about project or give feedback and proposals regarding React interoperability from native side. You can also do it in Issues of Underdark repositories on GitHub, if you feel it will be more appropriate that way.

Wish all the best for your bindings project!

butchmarshall commented 6 years ago

Hi Virl thanks for releasing this!

Given the projects current state would it be possible to send voice data over the connection? I'm interested in using this to make a local walkie talkie type application.

virl commented 6 years ago

It should be possible, but underlying mobile OS uses tcp-like connection, so I don’t know how good latency would be.

butchmarshall commented 6 years ago

That's great @virl!

I'm trying to use react-native-webrtc for the connections but don't even know where to get started with this library to allow the devices to discover one another?

Do you have any pointers to get me started?

pttd1304 commented 6 years ago

Hi @virl ! Can you give us some instructions on how to use the library? Like where I should start or something. A sample project would be great.

virl commented 6 years ago

@pttd1304 Hi. Library's github repo contains sample project that transfers arbitrary bytes.

pttd1304 commented 6 years ago

@virl Hey. Can you provide a link to the sample project, please? I cannot find it anywhere. Many thanks.

virl commented 6 years ago

@pttd1304 https://github.com/udark/underdark-cocoa/ https://github.com/udark/underdark-android/

pttd1304 commented 6 years ago

@virl Thank you. I thought it was a sample project for react native underdark. How should I start a project with react native underdark library?

virl commented 6 years ago

@pttd1304 Sorry, React native support for it is not my project.

pttd1304 commented 6 years ago

@virl Oh. So may I ask what this react native bluetooth crossplatform is for, and how I can utilize this library.

virl commented 6 years ago

@pttd1304 It is not my project, so I guess you should not ask that from me. :)

pttd1304 commented 6 years ago

@virl Ok. Thanks for the support. Time to get my hands dirty then.

MichaelFBA commented 6 years ago

@virl Just a couple of quick questions re: WIFI connections

  1. Is there a limit to the number of users connected?
  2. Once I am connected to a number of users are we using the same IP range on the adhoc network?
virl commented 6 years ago

@MichaelFBA

  1. For Wi-Fi connections, its OS socket fd limit (thousands in same network).
  2. Adhoc is not supported on stock Android and my library doesn't use it. For Wi-Fi it connect only in same Wi-Fi LAN Access Point.
michaeldanielbell commented 6 years ago

@virl Thanks for clearing that up. I was under the impression we could use your library without an intermediary access point as I think that's where the real magic happens.

I noticed Android has Wifi Direct, is this something you could use? https://developer.android.com/guide/topics/connectivity/wifip2p.html

virl commented 6 years ago

@michaeldanielbell No, Wi-Fi Direct on Android doesn't work because it is bugged beyond repair on OS level.