{"repo":"Velorexe/Unity-Android-Bluetooth-Low-Energy","free":true,"listed":false,"github":"https://github.com/Velorexe/Unity-Android-Bluetooth-Low-Energy","clone":"git clone https://github.com/Velorexe/Unity-Android-Bluetooth-Low-Energy.git","description":"A Unity Android plugin to support basic Bluetooth Low Energy interactions.","language":"C#","stars":158,"topics":["unity","bluetooth","bluetooth-low-energy","android","ble"],"license":"Unlicense","category":"mobile-apps","readme_excerpt":"Unity Android Bluetooth Low Energy A Unity Android plugin to support basic Bluetooth Low Energy interactions Basis for my thesis on applying wearables to Virtual Reality Rehabilitation Programs in Android Virtual Reality devices Features Support for basic BLE operations Discovering Devices Connecting to a Device Writing to a Characteristic Subscribing to a Characteristic Reading from a Characteristic Writing to a Characteristic How It Works By Utilizing the Android JNI and the capabilities for Android plugins on Unity to interact with the MonoBehaviour ecosystem, the .NET side inside Unity can communicate with the plugin, while the plugin can communicate back using the MonoBehaviour SendMessage method. The plugin contains a Singleton pattern that gets called from the BleManager script as an AndroidJavaObject . With this object you can call static methods and pass parameters, which takes care of communication from Unity to Android's BLE system. The plugin will then operate and send changes to Unity using the MonoBehaviour SendMessage method to pass JSON information to the BleAdapter . Most of the BLE operations utilize the .NET event system, so information can be passed through all of the classes that need it. The BLE operations rely on the abstract BleCommand class. This class can be queued up into the BleManager , which executes the queued up commands one by one, or removes them from the queue if they're extending their TimeOut time. If you're interested, I've written an art","default_branch":null,"files":null,"tree":[],"storefront":"/r/Velorexe","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Velorexe/Unity-Android-Bluetooth-Low-Energy/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}