Simple iOS Bluetooth Data Transmission Using Unity
those are upwards or $50
No, they are not. Here is a Bluetooth plugin for Android and iOS for $10.
The rule goes like:
If you are one person, use that. You will save yourself time. If you are working for a company, you should make your own plugin.
is there a good tutorial for this that I can follow?
If you decide to make your own Bluetooth plugin, you must first learn Java. Make a simple Android Java Bluetooth program and test it on your Android device. If it works, then you can then simply convert it into a plugin by seperating the code into functions such as bluetoothInit()
, bluetoothConnect()
, bluetoothSend()
, bluetoothReceive()
, bluetoothDisconnect()
, bluetoothClose()
. Then compile it into a plugin (jar or aar) file. You can now call the functions from Unity C#.
Learn Android Bluetooth API.
Links on how to call Java functions from C# in Unity. I suggest you follow the first link.
http://www.what-could-possibly-go-wrong.com/creating-a-native-android-plugin-for-unity3d/
http://www.thegamecontriver.com/2015/04/android-plugin-unity-android-studio.html
https://www.thepolyglotdeveloper.com/2014/06/creating-an-android-java-plugin-for-unity3d/
EDIT:
For iOS, you need to learn Objective-C. Learn iOS Bluetooth API then make a plugin.
https://developer.apple.com/library/ios/documentation/NetworkingInternetWeb/Conceptual/CoreBluetooth_concepts/AboutCoreBluetooth/Introduction.html
http://code.tutsplus.com/tutorials/ios-7-sdk-core-bluetooth-practical-lesson--mobile-20741
Unity3D for iOS and Android: Multiplayer (Bluetooth Connection)
For Ships N' Battles (a cross platform multiplayer game Unity authored) we have built several ways to perform a multiplayer game:
via Bluetooth (using Prime31 plugin)
- iOS
I've never seen a game with multiplayer between iOS and Android using Bluetooth.
via LAN (using Unity RPC)
- iOS
- Android
- Mac
- Web (Kongregate)
The players can start combats in a Local Area Network with any of above devices: iOS vs iOS, iOS vs Android, Android vs Mac, and so on.
via Game Center (using Prime31 plugin)
- iOS
Uses the Game Center multiplayer to match combats.
via Global Server (an in-house solution)
- iOS
- Android
- Mac
- Web (Kongregate)
The players can start combats around the world with any of above devices: iOS vs iOS, iOS vs Android, Android vs Mac, and so on.
For this solution we have built a online server, but you can use something like Photon.
tranfer file via bluetooth to iphone using 32feet
I walked away from this for a while. and started Trying to use xamiren but then had to create a virtual Mac so that I could have the apple store to just load software on my phone. From there xamerin 'should' work well but its another field and tons more to firgure out.
Android / iOS Bluetooth Low Energy (BLE) communication with multiple Services
I realized that it was all about the length of two or more 128bit UUIDs being added. Adding one 128bit and one 32bit UUID worked fine.
Related Topics
How to Use Jwt in MVC Application for Authentication and Authorization
Uploadfile with Post Values by Webclient
Dynamically Setting CSS Values Using ASP.NET
Good Resource to Learn Bdd, Tdd (Ruby , C#, JavaScript)
How to Find a Java to C# Converter
Add "Everyone" Privilege to Folder Using C#.Net
How to Configure Swashbuckle to Ignore Property on Model
How to Put a Task to Sleep (Or Delay) in C# 4.0
System.Text.JSON: How to Specify a Custom Name for an Enum Value
C# Tcpclient: Send Serialized Objects Using Separators
When Do We Need to Set Processstartinfo.Useshellexecute to True
C# Sha-1 VS. PHP Sha-1...Different Results
Set Gridview Backcolor to Color from Datatable
Upload File Through C# Using JSON Request and Restsharp
Java Equivalents of C# String.Format() and String.Join()
How to Set Up a Web API Controller for Multipart/Form-Data
How to Iterate Over the Properties of an Anonymous Object in C#