react-native-wifi-p2p icon indicating copy to clipboard operation
react-native-wifi-p2p copied to clipboard

I need mesh topology

Open MuhammetAdamoglu opened this issue 4 years ago • 5 comments

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?

MuhammetAdamoglu avatar Feb 04 '21 15:02 MuhammetAdamoglu

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?

kirillzyusko avatar Feb 04 '21 16:02 kirillzyusko

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?

MuhammetAdamoglu avatar Feb 04 '21 16:02 MuhammetAdamoglu

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

kirillzyusko avatar Feb 04 '21 16:02 kirillzyusko

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?

MuhammetAdamoglu avatar Feb 05 '21 08:02 MuhammetAdamoglu

@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 avatar Feb 05 '21 20:02 kirillzyusko

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

kirillzyusko avatar Mar 15 '23 12:03 kirillzyusko