Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to calculate distance between two iOS devices using Multipeer connectivity(Wifi network)?

How to calculate the distance between two iOS devices using a wireless connection.

I figure out we can calculate using BLE, using RSSI number.

But the range of the device varies and the device placed in the room far away cannot be discovered.

My requirement is to calculate the distance device present in the room.

I have looked into the Multi-peer connectivity framework, but there is no such thing as the RSSI number.

Thanks in advance.

like image 816
ketaki Damale Avatar asked Jun 09 '20 13:06

ketaki Damale


Video Answer


1 Answers

You can check the new NearbyInteraction https://www.reddit.com/r/iOSProgramming/comments/hfq5w8/nearbyinteraction_guide_and_github_repository/?utm_source=share&utm_medium=web2x&context=3

but will works on iphone 11 and above , bcz thes devices have the U1 chip

like image 159
Bassem Halawa Avatar answered Oct 21 '22 18:10

Bassem Halawa