BLE - Can you Scan and change advertisements at the same time?

Basically, I am advertising over BLE and frequently changing the advertisement.

I also need to scan for a BT peripheral ongoing. I am noticing that the BLE.Scan method seems to block other BLE methods until it completes.

I believe the Nordic chip supports multirole, just curious if there is anyway to do both at the same time?

Also, while scanning does it stop advertising? Or is it just the change to the advertisement that is blocked.

Thanks!

You can’t change the advertising data while scanning but you you can scan for a shorter length of time, change the advertising data, then start scanning again. The amount of time not scanning should be negligible.

2 Likes

Thank you,

Just to clarify, does the device still advertise while scanning?

Yes, advertising continues while scanning.

1 Like