Skip to content

Commit 4ee622f

Browse files
committed
fix(android): set default encoding to prevent errors
1 parent 5674f78 commit 4ee622f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ble/index.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2088,7 +2088,7 @@ export class Bluetooth extends BluetoothCommon {
20882088
);
20892089
}
20902090

2091-
private writeValueToChar(characteristic: android.bluetooth.BluetoothGattCharacteristic, value, encoding) {
2091+
private writeValueToChar(characteristic: android.bluetooth.BluetoothGattCharacteristic, value, encoding = 'iso-8859-1') {
20922092
const nArray = arrayToNativeArray(value, true, true, true);
20932093
if (nArray) {
20942094
if (ArrayBuffer.isView(nArray)) {

0 commit comments

Comments
 (0)