kirillzyusko / react-native-wifi-p2p

Library that provide access for working with wi-fi direct (p2p) module in android.
164 stars 32 forks source link

I need mesh topology #46

Closed MuhammetAdamoglu closed 1 year ago

MuhammetAdamoglu commented 3 years ago

I need a p2p connection between android devices, 3 different devices should be able to exchange data with each other, but without a server. Only clients should be able to communicate with each other. However, when I look at the document, we can only use the star topology. The mesh topology I need. How can I get this topology with this library?

kirillzyusko commented 3 years ago

Hi @MuhammetAdamoglu Thanks for interesting question! Is it possible to create mesh network using Android WiFi direct? Do you have small examples of such apps?

MuhammetAdamoglu commented 3 years ago

Frankly, I cannot find many examples. I want to offer internet use with / without internet for my restaurant system. I need to create a network where cashiers, kitchens and waiters can communicate with each other. For example, when the waiter adds an order, it must be delivered to the kitchen and when the product is ready in the kitchen, he must inform the waiter that the order is ready. How can I create this network?

kirillzyusko commented 3 years ago

@MuhammetAdamoglu yes, you described mesh network. Have you considered the usage of nearby API? Can it be done through it?

MuhammetAdamoglu commented 3 years ago

I reviewed the Nearby api, the library was updated 3 years ago and I think it doesn't work on current android devices. I will try to establish a socket connection in the local network with this library. I hope it works.

As far as I know, the p2p connection must be based on the mesh topology. I know wrong?

kirillzyusko commented 3 years ago

@MuhammetAdamoglu not sure I get your question. Could you elaborate a little bit more?🙂

Regarding first part, do you think react-native-static-server will allow p2p communication? As I could understand from the description it may serve only static files (not dynamic content, like, for example, text). Or I'm missing something?

kirillzyusko commented 1 year ago

Closed since https://github.com/kirillzyusko/react-native-wifi-p2p/pull/61 was merged