I ibrahim123 New Member Oct 7, 2018 #1 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 ??
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 Oct 8, 2018 #2 Please use [CODE]code here...[/CODE] tags when posting code. 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: Oct 8, 2018 Upvote 0
Please use [CODE]code here...[/CODE] tags when posting code. 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/
Erel B4X founder Staff member Licensed User Longtime User Oct 8, 2018 #3 Seems like you are using the old BLE library. You should use BLE2 instead. Upvote 0