Skip to content

Commit 6ffa83f

Browse files
committed
fix(android): error wile sending array to char
1 parent fa6ea23 commit 6ffa83f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
},
5757
"homepage": "https://github.com/nativescript-community/ble",
5858
"dependencies": {
59-
"@nativescript-community/arraybuffers": "^1.1.1",
59+
"@nativescript-community/arraybuffers": "^1.1.5",
6060
"@nativescript-community/observable": "^2.0.11",
6161
"@nativescript-community/perms": "^2.3.0",
6262
"@nativescript-community/plugin-seed-tools": "file:tools",

packages/ble/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
},
6767
"homepage": "https://nativescript-community.github.io/ble",
6868
"dependencies": {
69-
"@nativescript-community/arraybuffers": "^1.1.1",
69+
"@nativescript-community/arraybuffers": "^1.1.5",
7070
"@nativescript-community/observable": "^2.0.11",
7171
"@nativescript-community/perms": "^2.3.0",
7272
"make-error": "1.3.6",

src/ble/index.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2050,7 +2050,7 @@ export class Bluetooth extends BluetoothCommon {
20502050
}
20512051

20522052
private writeValueToChar(characteristic: android.bluetooth.BluetoothGattCharacteristic, value, encoding) {
2053-
const nArray = arrayToNativeArray(value, true, true);
2053+
const nArray = arrayToNativeArray(value, true, true, true);
20542054
if (nArray) {
20552055
if (ArrayBuffer.isView(nArray)) {
20562056
com.nativescript.bluetooth.Bluetooth.writeCharBufferValue(characteristic, nArray.buffer['nativeObject'] || (nArray as any));

0 commit comments

Comments
 (0)