Use BluetoothGattCharacteristic write type as a value, not as a flag