Advertisement not resuming after disconnection

Hi,

I combined the throughput example and the lbs example in NCS v2.6.2 running in NRF5340DK. It seems the advertisement is not resuming after i disconnect the app (NRF connect).

Please see the attached sample code.

7455.lbs_throughput.zip

Note that on top of the original lbs example, i am updating the connection parameters, phy, data length etc as in the throughput example.

Also i am using the same disconnected callback from lbs.

static void on_disconnected(struct bt_conn *conn, uint8_t reason)
{
	printk("Disconnected (reason %u)\n", reason);

	dk_set_led_off(CON_STATUS_LED);
}

regards,

Vinu

Parents
  • Hi,

    The behavior where the device starts advertising again after disconnection is not controlled from the "disconnected" callback. I guess you could try to start advertising again from within the callback, but there might be something else at play here: Can you check and see what the behavior is, if you don't do a phy update while in the connection? Do you see the same issue then?

    Regards,
    Terje

Reply
  • Hi,

    The behavior where the device starts advertising again after disconnection is not controlled from the "disconnected" callback. I guess you could try to start advertising again from within the callback, but there might be something else at play here: Can you check and see what the behavior is, if you don't do a phy update while in the connection? Do you see the same issue then?

    Regards,
    Terje

Children
Related