Currently, there's a function called getGroupPassphraseInfo, but it'll only give you the passphrase.
I need to check who are the other peers in my group.
I need the groupOwner's and clients' macAddresses.
I believe the best way to achieve this, is to create additional method requestGroupInfo:
@ReactMethod
public void getGroupInfo(final Promise promise) {
manager.requestGroupInfo(channel, new WifiP2pManager.GroupInfoListener() {
@Override
public void onGroupInfoAvailable(WifiP2pGroup group) {
promise.resolve(group);
}
});
}
and an appropriate js method:
const getGroupInfo = () => WiFiP2PManager.getGroupInfo();
Maybe you should also deprecate the getGroupPassphraseInfo method and remove it in the next breaking change.
Currently, there's a function called getGroupPassphraseInfo, but it'll only give you the passphrase.
I need to check who are the other peers in my group.
I need the groupOwner's and clients' macAddresses.
I believe the best way to achieve this, is to create additional method requestGroupInfo:
and an appropriate js method:
const getGroupInfo = () => WiFiP2PManager.getGroupInfo();Maybe you should also deprecate the getGroupPassphraseInfo method and remove it in the next breaking change.