Part Number: LAUNCHXL-CC26X2R1
HI i'm using sdk simplelink_cc13x2_26x2_sdk_5_20_00_52
This is my modified code
like is follow - i'm using a simple central example for my project in that after the scan advreport event it well trigger on that i'm collecting the scan address and sent to the uart and then again through serial UART i'm receiving address that address stored in global bufffer inside uart i'm enqueued this one SC_CONN_EVT
SimpleCentral_enqueueMsg(SC_CONN_EVT,0, NULL);
case SC_EVT_ADV_REPORT:
{
GapScan_Evt_AdvRpt_t* pAdvRpt;
pAdvRpt = (GapScan_Evt_AdvRpt_t*) (pMsg->pData);
/* if (pAdvRpt->evtType &= ADV_RPT_EVT_TYPE_SCAN_RSP)
{
if (++total_scan_results_count == 0xffffffff)
{
total_scan_device_count = 0;
}
++scan_results_count;*/
if( (*((pAdvRpt->pData)+2) == 0x41) || (*((pAdvRpt->pData)+2) == 0x4D) )
{
memcpy(&AddrLis, pAdvRpt->addr, B_ADDR_LEN);
sync_done = false;
GapScan_disable("");
scanningStarted = FALSE;
if (pAdvRpt->pData != NULL)
{
ICall_free(pAdvRpt->pData); // Free report payload data
}
// Send Data To HOST
// the data address of scanned device address based on that IPQ send command to cental
// depends on that have to connect or cancel connection
SendDataToUart(AddrLis, sizeof(AddrLis));
}
}
here I'm calling the connection function it's connecting but after that termination request function calling termination is happening but GAP_LINK_TERMINATED_EVENT: not triggering please help me!
static void SimpleCentral_processAppMsg(scEvt_t *pMsg)
{
case SC_CONN_EVT:
{
uint8_t vs[4]={0};
vs[0]=0x65;
vs[1]=0x65;
vs[2]=0x65;
SendDataToUart(vs,sizeof(vs));
uint8_t addrType=0x0;
GapInit_connect(addrType & MASK_ADDRTYPE_ID,addrr,INIT_PHY_1M,0);
break;
}
}