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.

cc2541 disconnect how to disable auto advertising?

Other Parts Discussed in Thread: CC2541

Dear TI,

How can I disable auto advertising after cc2541 disconnect?

I don't understand why device auto advertising.

static void peripheralStateNotificationCB( gaprole_States_t newState )
{
uint8 initial_advertising_enable;

switch ( newState )
{
case GAPROLE_STARTED:
{

initial_advertising_enable = TRUE;
GAPRole_SetParameter( GAPROLE_ADVERT_ENABLED, sizeof( uint8 ), &initial_advertising_enable );

}

}

Thanks a lot 

Ben