/* Attribute read call back for the Value V2 string attribute.  */
static ssize_t read_str_auth_value(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 V2 string attribute.  */
static ssize_t read_str_auth_value(struct bt_conn *conn, const struct bt_gatt_attr *attr, void *buf, uint16_t len, uint16_t offset)
{
	const char *value = attr->user_data;
	if (!bAuthorized)
		return BT_GATT_ERR(BT_ATT_ERR_AUTHORIZATION);
	return bt_gatt_attr_read(conn, attr, buf, len, offset, value,
				 strlen(value));
}