sReto
sReto copied to clipboard
Remote Peer Has No Name
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.
First, thanks for this great framework. I'm also running into the peer name issue, but I cannot see how to fix it.