title: How to calculate distance between two iOS devices using Multipeer connectivity(Wifi network)?
body: <p>How to calculate the distance between two iOS devices using a wireless connection.</p>
  
  <p>I figure out we can calculate using <code>BLE</code>, using <code>RSSI</code> number. </p>
  
  <p>But the range of the device varies and the device placed in the room far away cannot be discovered.</p>
  
  <p>My requirement is to calculate the distance device present in the room.</p>
  
  <p>I have looked into the <a href="https://www.appcoda.com/chat-app-swift-tutorial/" rel="noreferrer">Multi-peer connectivity framework</a>, but there is no such thing as the <code>RSSI</code> number.</p>
  
  <p>Thanks in advance.</p>