This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

BLE Custom Characteristic Value Read and Write is not working

Hi,

I have created a custom Serivice and custom characteristics in the attached application

Please find the attached application which create a custom Characteristic with Read and Write Permissions. I was able to write the Custom Charateristic Value say "0x55" using Mobile app. But unable to read the same data "0x55" from the application.

I want to write a callback function which reads Custom Charateristic Value configured by Mobile Application.

With this application, I was also not able to read data from Mobile app also. Only write from Mobile App is working. How to enable read from Mobile App for custom Charateristic 

Can you please help me to resolve this issue?

Thanks in Advance.

Regards,

Deepa

Parents Reply
  • Hi Vidar,

    Thanks for clarification. With this change I can able to do write and read the data using custom characteristics from Mobile App.

    At Peripheral end, I will get an callback "BLE_GATTS_EVT_WRITE" whenevr I do a write on charcteristic write value from Mobile App. 

    Can you please point me to the callback need to be registered for the read of charcteristic write value from Mobile App?

    As per the application i have defined by attributes as 

    attr_char_value.init_len = 1;
    attr_char_value.init_offs = 0;
    attr_char_value.max_len = 1;

    Which defined my Custom characteristic Value length is 1 and datatype is uint8 (default)

    How can I change my datatype of Custom characteristic Value?

    Thanks in Advance!!

    Regards,

    Deepa

Children
No Data
Related