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

From the Javadoc:

>The write type to for this characteristic. Can be one of: WRITE_TYPE_DEFAULT, WRITE_TYPE_NO_RESPONSE or WRITE_TYPE_SIGNED.