Android Question java.lang.RuntimeException: Method: setValue not matched.

ibrahim123

New Member
hi everyone
i am trying to use setValue method and i keep getting this error

"""java.lang.RuntimeException: Method: setValue not matched."""
{

Sub SetByteValue(Characteristic As BleCharacteristic, Value As Byte)

JavaObj = Characteristic
Try
JavaObj.RunMethod("setValue", Array As Object(Value))
Manager.WriteCharacteristic(Characteristic)
Catch
Log("Failed sending value " & Value)
End Try

End Sub
}
using b4a trailer version 8.50

any ideas ??
 

DonManfred

Expert
Licensed User
Longtime User
Please use [CODE]code here...[/CODE] tags when posting code.

codetag001.png

codetag002.png

codetag003.png


remove the try catch and post the full error

check this tutorial.
https://www.b4x.com/android/forum/threads/ble-2-bluetooth-low-energy.59937/
 
Last edited:
Upvote 0
Top