/* Attribute read call back for the Server Characteristic Configuration attribute.  */
static ssize_t read_server_cha_con(struct bt_conn *conn, const struct bt_gatt_attr *attr, void *buf, uint16_t len, uint16_t offset)
/* Attribute read call back for the Server Characteristic Configuration attribute.  */
static ssize_t read_server_cha_con(struct bt_conn *conn, const struct bt_gatt_attr *attr, void *buf, uint16_t len, uint16_t offset)
{
	const uint16_t *value = attr->user_data;
	uint16_t server_cha_con_conv = sys_cpu_to_le16(*value);
	return bt_gatt_attr_read(conn, attr, buf, len, offset,
				 &server_cha_con_conv,
				 sizeof(server_cha_con_conv));
}