I need to develop a BLE Tizen Application, which will create a bond and write the Enable notification to Descriptor.
Tizen Application verson 2.3.1 building on Samsung Gear S3 Classic.
The Remote Device is Health Custom characteristic patch BLE device and It has two characteristic CHAR_NOTIFY and CHAR_WRITE and requires Encrypted channel for Writing using descriptor.
Using CHAR_NOTIFY characteristic , I have to get descriptor, on that descriptor, I have to perform read and write.
even I got the descriptor, read opearation is successful
ret = bt_gatt_client_read_value(desc, __bt_gatt_client_read_complete_cb, NULL); by this method,
But when I am going to write on that descriptor ,It got failed. “Error :: Write failed -1”
ret = bt_gatt_client_write_value(desc, __write_completed_cb, NULL); by this Method
where desc is a descriptor achieved from get_characteristic.
Tizen BLE Application, Descriptor write failed
Hello,
I need to develop a BLE Tizen Application, which will create a bond and write the Enable notification to Descriptor.
Tizen Application verson 2.3.1 building on Samsung Gear S3 Classic.
The Remote Device is Health Custom characteristic patch BLE device and It has two characteristic CHAR_NOTIFY and CHAR_WRITE and requires Encrypted channel for Writing using descriptor.
Using CHAR_NOTIFY characteristic , I have to get descriptor, on that descriptor, I have to perform read and write.
even I got the descriptor, read opearation is successful
But when I am going to write on that descriptor ,It got failed. “Error :: Write failed -1”
below is code snippet :
#define CHAR_WRITE “0000038b-4f40-4c51-ad31-c410f4e12c04”
#define CHAR_NOTIFYCCD “00002902-0000-1000-8000-00805f9b34fb”
#define SERVICE_UUID “0000f72b-4f40-4c51-ad31-c410f4e12c04”
char *myArray = (char []) {0x01, 0x00 };
I followed all the steps provided in the following URL:
https://developer.tizen.org/development/guides/native-application/connectivity-and-wireless/bluetooth
Actually , I build an Android Application which will successfully create a bond and write successfully with descriptor.
Please help me out what I am missing?
BY
16 Apr 2025
Tizen Studio
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio