/* Heart rate service callback register. 
This function will register callbacks that will be called in certain events related to Heart rate service. */
static void bt_ready(void)
/* Heart rate service callback register. 
This function will register callbacks that will be called in certain events related to Heart rate service. */
static void bt_ready(void)
{
	int err;
	printk("Bluetooth initialized\n");
	err = bt_le_adv_start(BT_LE_ADV_CONN_NAME, ad, ARRAY_SIZE(ad), NULL, 0);
	if (err) {
		printk("Advertising failed to start (err %d)\n", err);
		return;
	}
	printk("Advertising successfully started\n");
}