-
-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR appears while executing bluetooth.write() (bluetooth class are undefined ) #275
Comments
@jkh675 you have a build issue. the JS is not finding java class |
thanks for your reply! I've tried clean build and I have also tried to update all packages to the newest version, but the problem was not solved instead, when the write function called it didn't show up any message, it just crashed, without any information.
|
@jkh675 if there is a crash it will appear in thé logcat |
nope it just crash, no any informations |
@jkh675 then it is hard to help you. Might be related to the data you are trying to write |
@jkh675 In the past, I think I had similar problems when my device specified characteristic was not writable. |
here is the code. what I am doing here is when ble device notifies the phone, the phone sends back some data to the ble device.
here is the connection code:
here is where the problem getting involved's code:
but when this code runs, it shows this error
I have tried a lot of solutions to try to solve this error like replacing
this.bluetooth
tonew Bluetooth()
orgetBluetoothInstance()
but it did nothing it just gets worse. and this error I have been doing a lot of research but still have no progress on this error. so I really need help with this. thx.The text was updated successfully, but these errors were encountered: