Is there any API that can query whether Bluetooth is currently in broadcast status? I am working in all roles , master and slave simultaneously
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” ?