This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2642R-Q1: Cannot enable advertising after max connection number is reached

Part Number: CC2642R-Q1

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