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

Receive messages when the device is a mobile hotspot #60

Open V-d-H opened 1 year ago

V-d-H commented 1 year ago

Can you tell me if I want to use 1 mobile device as host to broadcast network to another device and can I use receiveMessage() to receive message ? Thank you

kirillzyusko commented 1 year ago

Hi @V-d-H

I'm not sure whether it's possible to use p2p if devices are connected to each other via hotspot. I think hotspot and p2p technologies are different from each other. I would say it's not possible.

You always can try to connect to wi-fi shared via hotspot and then try to connect to p2p. I assume internet connection will be dropped, though my words need to be verified.