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.

CC2640R2F: connectable and non-connectable advertising

Part Number: CC2640R2F

Hi,

I'm working with CC2640R2F and using CCS, SDK 1_50_00_58. 

Can I use both connectable adertisement and non connectable advertisement in the same project. Can I switch between both? If yes how to do that and is there any documentation related to that?

Thanks,

radha

  • I think you can use the following code to stop connectable advertising and start non-connectable advertising.

    advertEnabled =FALSE ;

    // Disable connectable advertising.
    GAPRole_SetParameter(GAPROLE_ADVERT_ENABLED, sizeof(uint8_t),
    &advertEnabled);

    uint8_t advertEnabled = TRUE;

    // Enable non-connectable advertising.
    GAPRole_SetParameter(GAPROLE_ADV_NONCONN_ENABLED, sizeof(uint8_t),
    &advertEnabled);

    And use the following code to stop non-connectable and start connectable advertising advertising.

    uint8_t advertEnabled = FALSE;

    // Disable non-connectable advertising.
    GAPRole_SetParameter(GAPROLE_ADV_NONCONN_ENABLED, sizeof(uint8_t),
    &advertEnabled);

    advertEnabled = TRUE;

    // Enabled connectable advertising.
    GAPRole_SetParameter(GAPROLE_ADVERT_ENABLED, sizeof(uint8_t),
    &advertEnabled);
  • Hi YK Chen,

    Thanks for the quick response.

    Thanks,
    radha.