You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I want to write some data to my characteristics alert like
bluetooth.writeWithoutResponse({
serviceUUID: '1802',
characteristicUUID: '2a06',
peripheralUUID: this.deviceUUID,
value: '0x01'
})
I have an error like " Error: java.lang.NoSuchFieldError: no "Landroid/os/Parcelable$Creator;" field "CREATOR" in class "Landroid/bluetooth/BluetoothGattCharacteristic;" or its superclasses "
Or if i use value : 0x01 i have 'Error in Bluetooth.writeWithoutResponse: Error: Expect integer value as a second argument."
I want to know if someone have the same error.
Need help or issues
Best Regards.
The text was updated successfully, but these errors were encountered:
I also had the same problem when I deployed the app on Android 5.1.1 and tried to write the message to the device. I found the workaround. Find node_modules/nativescript-bluetooth/bluetooth.android.js. Find method onCharacteristicWrite, then change the body of the method to the following:
The problem is bluetoothGattCharacteristic. For SDK_INT < 23 , bluetoothGattCharacteristic will throw this exception during runtime. It probably needs the team to fix this. I hope this workaround would help you.
Hi,
I want to write some data to my characteristics alert like
bluetooth.writeWithoutResponse({
serviceUUID: '1802',
characteristicUUID: '2a06',
peripheralUUID: this.deviceUUID,
value: '0x01'
})
I have an error like " Error: java.lang.NoSuchFieldError: no "Landroid/os/Parcelable$Creator;" field "CREATOR" in class "Landroid/bluetooth/BluetoothGattCharacteristic;" or its superclasses "
Or if i use value : 0x01 i have 'Error in Bluetooth.writeWithoutResponse: Error: Expect integer value as a second argument."
I want to know if someone have the same error.
Need help or issues
Best Regards.
The text was updated successfully, but these errors were encountered: