giomurru / ble-framework Goto Github PK
View Code? Open in Web Editor NEWA Unity framework for using bluetooth low energy (BLE) ReadBearLab boards with iOS and Android mobile platforms.
License: MIT License
A Unity framework for using bluetooth low energy (BLE) ReadBearLab boards with iOS and Android mobile platforms.
License: MIT License
I want to change the other microcotroller. It can ??? Can you show the way how to solve it?
Hello is this plugin works for Raspberry pi zero wirless?? i have to send and receive data between Raspberry and android using unity ! is this works for me?
Everything works, i.e., I can connect the phone (running your code in Unity, on an android) and my arduino which has a BT LE module. (I see the blue LED that signifies the connection worked).
However, the function _SendData, crashes in runtime with:
07-10 18:38:28.493 4294-4318/? I/Unity: AndroidJavaException: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.bluetooth.BluetoothGattCharacteristic.setValue(byte[])' on a null object reference java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.bluetooth.BluetoothGattCharacteristic.setValue(byte[])' on a null object reference at com.gmurru.bleframework.BleFramework._SendData(BleFramework.java:605) at com.unity3d.player.UnityPlayer.nativeRender(Native Method) at com.unity3d.player.UnityPlayer.a(Unknown Source) at com.unity3d.player.UnityPlayer$b.run(Unknown Source) at UnityEngine.AndroidJNISafe.CheckException () [0x00000] in <filename unknown>:0 at UnityEngine.AndroidJNISafe.CallVoidMethod (IntPtr obj, IntPtr methodID, UnityEngine.jvalue[] args) [0x00000] in <filename unknown>:0 at UnityEngine.AndroidJavaObject._Call (System.String methodName, System.Object[] args) [0x00000] in <filename unknown>:0 at UnityEngine.AndroidJavaObject.Call (System.String methodName, System.O
Is this the proper way to send a few bytes through the BT connection? Do I have to initialize a service first? (I do that in my Android Studio app, was trying to replicate in Unity)
I'm trying to build a unity app that uses your framework but i can't get it to work, even the sample project doesn't work. I use an Android 7.0 version.
Thanks in advance
Below is the debug log from xcode:
2017-11-15 17:40:25.507969+0800 bleframework[5308:518616] scanForPeripheralsWithServices
2017-11-15 17:40:27.508815+0800 bleframework[5308:518616] Stopped Scanning
2017-11-15 17:40:27.508880+0800 bleframework[5308:518616] Known peripherals : 0
2017-11-15 17:40:27.509323+0800 bleframework[5308:518616] List of currently known peripherals :
2017-11-15 17:40:27.509351+0800 bleframework[5308:518616] No peripherals found
AppControllerBehavior: HandleOnBleDidCompletePeripheralScanErrorEvent: Error scanning for BLE peripherals: Fail: No device found
BLEFramework.Unity.BLEControllerEventHandler:OnBleDidCompletePeripheralScan(String)
Hi, I wanted to use this asset in my application to be made in unity. Can I select which services/characteristic I want to write to?
If yes, then how?
If no, then please suggest some solutions?!
TIA
Importing to latest version of Android Studio doesn't permit Run of copyPlugin.
"You can open this project using Android Studio, then click on Run 'copyPlugin' to generate and copy the plugin in the BleFramework/Assets/Plugin/Android folder."
Is there a way to manually perform the task?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.