Giter Club home page Giter Club logo

Comments (9)

akainth avatar akainth commented on August 10, 2024 1

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!

BleFrameworkPlugin.jar.zip

from ble-framework.

giomurru avatar giomurru commented on August 10, 2024

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.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)


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.

varunvp avatar varunvp commented on August 10, 2024

Is this issue solved as of now?

from ble-framework.

hanfengsunshine avatar hanfengsunshine commented on August 10, 2024

Is this issue solved ?
It wouldn.t work right now?

from ble-framework.

giomurru avatar giomurru commented on August 10, 2024

@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.

giomurru avatar giomurru commented on August 10, 2024

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.

akmaaak avatar akmaaak commented on August 10, 2024

Is there anybody who could solve the issue? I am having the same issue now. I need help about this problem

from ble-framework.

kartik9k avatar kartik9k commented on August 10, 2024

Yes please, I'm stuck on the same issue as well, with android!

from ble-framework.

Vinh-Beo avatar Vinh-Beo commented on August 10, 2024

Is there any people who could solve this issue already? Please help me!!!!:((

from ble-framework.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.