Skip to content

Commit 99c1fe4

Browse files
authored
Merge pull request #536 from AustinHaigh/patch-1
add ble write response error code to returned object
2 parents a01ef67 + 92ef309 commit 99c1fe4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/android/BluetoothLePlugin.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4092,6 +4092,7 @@ public void onCharacteristicWrite(BluetoothGatt gatt, BluetoothGattCharacteristi
40924092

40934093
addProperty(returnObj, keyError, errorWrite);
40944094
addProperty(returnObj, keyMessage, logWriteFailReturn);
4095+
addProperty(returnObj, keyStatus, status);
40954096
callbackContext.error(returnObj);
40964097
}
40974098

@@ -4119,6 +4120,7 @@ public void onCharacteristicWrite(BluetoothGatt gatt, BluetoothGattCharacteristi
41194120
//Else it failed
41204121
addProperty(returnObj, keyError, errorWrite);
41214122
addProperty(returnObj, keyMessage, logWriteFailReturn);
4123+
addProperty(returnObj, keyStatus, status);
41224124
callbackContext.error(returnObj);
41234125
}
41244126
}

0 commit comments

Comments
 (0)