Skip to content

Commit 92ef309

Browse files
AustinHaighaustin2479
authored andcommitted
add ble write response error code to return object
This reveals the write response error code that is returned by the GATT server
1 parent a01ef67 commit 92ef309

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)