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.
Upon calling the
startmethod of theLocalPeer, thepeer(remote peer) that is being passed inonPeerDiscoveredhas a different name:Here is the initialization:
but here:
Btw, I'm using Simulator and Actual iOS device.