/* Attribute read call back for the Value V16 attribute.  */
static ssize_t read_value_v16(struct bt_conn *conn, const struct bt_gatt_attr *attr, void *buf, uint16_t len, uint16_t offset)
/* Attribute read call back for the Value V16 attribute.  */
static ssize_t read_value_v16(struct bt_conn *conn, const struct bt_gatt_attr *attr, void *buf, uint16_t len, uint16_t offset)
{
	const struct value_v16_t *value = attr->user_data;
	struct value_v16_t value_v16_conv;
	value_v16_conv.field_a = value->field_a;
	value_v16_conv.field_b = sys_cpu_to_le16(value->field_b);
	value_v16_conv.field_c = sys_cpu_to_le32(value->field_c);
	return bt_gatt_attr_read(conn, attr, buf, len, offset, &value_v16_conv,
				 sizeof(value_v16_conv));
}