tinyb
tinyb copied to clipboard
Some java methods throw UnsatisfiedLinkError
Calling BluetoothDevice.getTxPower BluetoothDevice.getBluetoothType
result in
java.lang.UnsatisfiedLinkError: tinyb.BluetoothDevice.getTxPower()S java.lang.UnsatisfiedLinkError: tinyb.BluetoothDevice.getBluetoothType()Ltinyb/BluetoothType;
Bluez 5.43 and 0.5.0 tinyb
getBluetoothType()
appears to be a virtual method in the C++ side, maybe JNI doesn't like that? The getTxPower
method is definitely implemented. I'll try that function on the C++ side.
great, if you could update c++ stuff, possibly I would be able to fix java part.
Line 1101 in java/jini/BluetoothDevice.cxx jshort Java_tinyb_BluetoothDevice_getTXPower(JNIEnv *env, jobject obj) should be jshort Java_tinyb_BluetoothDevice_getTxPower(JNIEnv *env, jobject obj)
I submiited a patch to correct the UnsatisfiedLinkError for BluetoothDevice.getTxPower BluetoothDevice.getBluetoothType