I am trying to make a little wireless keyboard for a larger project that I am working on. I have 2 iPhones running iOS 9
and I wish for them to send just small amounts of information between the 2 (just what is typed on the keyboard and maybe a bit of metadata). Both phones will be on the same network. What is a free way to do this just using Unity and C# (if there is one)? I would like the connections to be fairly fast, but since it is such a small amount of data that isn't my biggest concern.
Asked
Active
Viewed 87 times
0

dsiegler19
- 369
- 1
- 5
- 20
-
If reliability isn't a concern i'd go for a simple WiFi broadcast packet – Machinarius May 15 '16 at 14:27
1 Answers
1
You need a TCP server and Client. By using sockets instead of Bluetooth
, this will also work in Android, pc and other platforms. Create a TCP server on one iPhone. Create a TCP client on the other iPhone and connect to the server phone. Send and receive data from each phone. Here is a complete TCP server. You can modify the code a little bit to also create a client code.

Community
- 1
- 1

Programmer
- 121,791
- 22
- 236
- 328