Tool/software:
I need to enable advertising after connecting to 4 phones, the max number of connections is set to 4. To enable the advertising, I modified the code under GAP_LINK_ESTABLISHED_EVENT to call GapAdv_enable again after the max connection number is reached:
However, GapAdv_enable returns 0x18(bleInvalidRange) after connecting to 4 devices. The advertisement is not enabled.
I changed the max number of connections to 2 to make it easier to be reproduced, the issue happened as well after 2 connections:
Is it allowed to enable the advertisement after reaching the max connection number? If yes, why does GapAdv_enable returns 0x18(bleInvalidRange)?
Best regards,
Shuyang