GATT onWriteCharacteristic() returns status=1 (BT_STATUS_FAIL)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I am using Bluez 5.33 on Android kitkat 4.4.3.
I am testing GATT functionality  and I found that sometime
onWriteCharacteristic returns status 1 (BT_STATUS_FAIL). In android
Application I am checking for success status (i.e. 0) which I am getting
most of the time. But occasionally I am getting Status 1 because of which
my application logic is failing.

When Bluez will send Status 1 and on what basis? How to avoid this?


-----------------------Working Log-------------------------------
D/BluetoothGatt( 1359): writeCharacteristic() - uuid:
1d4de0a0-9f84-11e4-a042-0002a5d5c51b
D/BtGatt.GattService( 1259): writeCharacteristic() -
address=00:00:39:36:85:2F
D/BtGatt.GattService( 1259): onWriteCharacteristic() -
address=00:00:39:36:85:2F, status=0
D/BluetoothGatt( 1359): onCharacteristicWrite() - Device=00:00:39:36:85:2F
UUID=1d4de0a0-9f84-11e4-a042-0002a5d5c51b Status=0
----------------------Log End-------------------------


--------------------------Failure Log---------------------------------
D/BluetoothGatt( 1359): writeCharacteristic() - uuid:
1d4de0a0-9f84-11e4-a042-0002a5d5c51b
D/BtGatt.GattService( 1259): writeCharacteristic() -
address=00:00:39:36:85:2F
D/BtGatt.GattService( 1259): onWriteCharacteristic() -
address=00:00:39:36:85:2F, status=1
D/BluetoothGatt( 1359): onCharacteristicWrite() - Device=00:00:39:36:85:2F
UUID=1d4de0a0-9f84-11e4-a042-0002a5d5c51b Status=1
--------------------------Log End-------------------------------

Regards,
KP

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux