So I am trying to write a simple app that will connect to another iPhone and send messages over bluetooth, and it seems like the best way to do this is using the GameKit. If I am wrong, please point me in the right direction now before you read this whole question, haha.
The two requirements are:
- iPhone to iPhone, same application (easy)
- I can get the time it took to send the unreliable message (not easy)
I am going to assume this is not possible over GameKit based on the (little) research I have done, and I have not yet found a good guide to the CoreBluetooth framework. Once again, if you could point me in the right direction that would be appreciated.
TL;DR: Is there a way using GameKit to get how long it took the small unreliable message to be sent? If not, can I do this with CoreBluetooth?
-Jake
This feels like a strange question, you want to know, how long it took to send the message between the two phones?
The way to this is to set up a ping between client and server, the server will ping the client, then the client immediately sends the response back to the server, and the server divides the total time by 2.