Comments (9)
Please note that the issue was because of wrong UUID in .jar file. My android developer friend changed the UUID in .jar file and it is working fine now.
Apart from .jar file, great plugin. Thanks Giovanni!
from ble-framework.
Hi Pedro,
I can't test it right now because I recently changed place where I live and
I don't have the ble mini and arduino with me.
I see that my latest commit on the project says "Everything works on
Android except the fact that data is not transmitted correctly".
I am sorry to say, I wasn't able to solve the problem because by knowledge
of Android architecture is limited compared to the one of iOS I have.
If you are able to solve the problem you are welcome to submit a pull
request in github, please.
Thank you for your time,
Giovanni
On Sun, Jul 10, 2016 at 6:45 PM, Pedro Lopes [email protected]
wrote:
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 :0
at UnityEngine.AndroidJNISafe.CallVoidMethod (IntPtr obj, IntPtr methodID,
UnityEngine.jvalue[] args) [0x00000] in :0
at UnityEngine.AndroidJavaObject._Call (System.String methodName,
System.Object[] args) [0x00000] in :0
at UnityEngine.AndroidJavaObject.Call (System.String methodName, System.OIs 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)—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#1, or mute the thread
https://github.com/notifications/unsubscribe/ACr6QC7RAFCrH-JYTBUVwJfftZrVoFPMks5qUSG3gaJpZM4JI3sa
.
from ble-framework.
Is this issue solved as of now?
from ble-framework.
Is this issue solved ?
It wouldn.t work right now?
from ble-framework.
@akainth can you please explain how did you solve the problem in the code that generates the jar? What UUID did you change? Thank you.
from ble-framework.
I'm working on the problem on the branch android-fix-dev. I switched to Android Studio build, so please ignore the instructions about ant. Furthermore Unity project already include the compiled jar android plugin and is ready to use. Unfortunately not everything is working.
You are welcome to contribute in the Android Plugin Project if you have any fix.
from ble-framework.
Is there anybody who could solve the issue? I am having the same issue now. I need help about this problem
from ble-framework.
Yes please, I'm stuck on the same issue as well, with android!
from ble-framework.
Is there any people who could solve this issue already? Please help me!!!!:((
from ble-framework.
Related Issues (8)
- Hello~ So if I want to catch Arduino that send data.Can i use this project? HOT 2
- Stuck with the InitBLEFramework message, even with the sample HOT 6
- No device found on iPhone 6s with iOS 11 HOT 7
- Select Characteristic to write to HOT 1
- bluetooth LE for android unity HOT 3
- Change the other microcontroller HOT 1
- Unable to run copyPlugin HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ble-framework.