sReto icon indicating copy to clipboard operation
sReto copied to clipboard

Remote Peer Has No Name

Open allanmacatingrao opened this issue 8 years ago • 1 comments

Upon calling the start method of the LocalPeer, the peer (remote peer) that is being passed in onPeerDiscovered has a different name:

Here is the initialization:

let wlanModule = WlanModule(type: type, dispatchQueue: dispatch_get_main_queue())

// displayName contains the user defined name
localPeer = LocalPeer(name: displayName, modules: [wlanModule], dispatchQueue:
dispatch_get_main_queue())

but here:

localPeer.start( onPeerDiscovered: { (peer) in
// peer.name contains the device name, not the user defined name
.
.
.

Btw, I'm using Simulator and Actual iOS device.

allanmacatingrao avatar Feb 26 '17 13:02 allanmacatingrao

First, thanks for this great framework. I'm also running into the peer name issue, but I cannot see how to fix it.

workingDog avatar Jun 12 '18 07:06 workingDog