Part Number:LAUNCHXL-CC2640R2
I tried adding the compiler define, and turn on advertising in the connect event of the application. It hangs. Is there a better suggestion.
case GAPROLE_CONNECTED:
{
// Get the active connection handle
/*-------------------------------------------------------------------------------
* Make advertisements non-connectable turn advertising back on.
*--------------------------------------------------------------------------------*/
uint8_t advType = GAP_ADTYPE_ADV_NONCONN_IND; // use non-connectable adv
GAPRole_SetParameter(GAPROLE_ADV_EVENT_TYPE, sizeof(uint8_t), &advType);
uint8_t nonconn_enable = TRUE;
GAPRole_SetParameter(GAPROLE_ADVERT_ENABLED, sizeof(uint8_t), &nonconn_enable);
uint16_t connHandle = 0;
Display_print0(dispHandle, 2, 0, "Connected");
GAPRole_GetParameter(GAPROLE_CONNHANDLE, &connHandle);
}