GATT Server - Write or Write without Response characteristic sample

Hello,

is there a zephyr or nrf sample where I could check how a characteristic with write or write_withour_resp perimissions is handled by the gatt server ?

What I am trying is to find out how the gatt server can process the data written by a gatt client.

Thank you in advance

Parents Reply
  • Hello Kenneth,

    thank you for  your assistance. 

    I tried to use the throughput sample as a reference for how to process the data written by the client but was not successful.

    I am using a write_callback function declared in the BT_GATT_CHARACTERISTIC() to get the attr->user_data and store in a uint16_t variable. 

    Is the data written by the client temporarily stored in the user_data parameter of the bt_gatt_attr structure attr ? 

Children
Related