DA1585 Query Bluetooth broadcast status

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at https://www.dialog-semiconductor.com/support . We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
moiify
Offline
Last seen: 6 months 1 week ago
Joined: 2020-03-12 07:26
DA1585 Query Bluetooth broadcast status

Is there any API that can query whether Bluetooth is currently in broadcast status? I am working in  all roles , master and slave simultaneously

Device: 
PM_Dialog
Offline
Last seen: 14 hours 38 min ago
Staff
Joined: 2018-02-08 11:03
Hi moiify,

Hi moiify,

According to Bluetooth LE specification, it is not possible to scan ( GAP Central role)  and advertise ( GAP Peripheral role)  at the same time. Since you are using DA14585, you can perform role switching from Peripheral to Central GAP configuration and vice versa. This can be done by setting the role to GAP_ROLE_ALL, so that you can either advertise or scan. It’s not possible to do both simultaneously.

However, can you please try to explain what do you mean with “Is there any API that can query whether Bluetooth is currently in broadcast status” ?

Thanks, PM_Dialog