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.

LAUNCHXL-CC26X2R1: How can I add group members in simple central code for SimpleCentral_autoConnect() and SimpleCentral_doAutoConnect()..!

Part Number: LAUNCHXL-CC26X2R1


Hello,

I want to know that, how can we add peripheral information in the simple central code for auto connection. We have 2 group in the simple central Group A , 2-Group B 

please suggest me...!

e2e.ti.com/.../4126425

Thanks ,

Ashutosh Singh

  • Hi Ashutosh,

    Thank you for posting on the E2E forums. I have assigned this thread to an expert.

    Best,

    Nima

  • Hi Ashutosh,

    The autoconnect features works by reading the advertising data and connecting to the device that has the advertising data that corresponds to a specific autoconnection group. I recommend referencing the SimpleCentral_isMember() to see which part of the advertisement is used to determine if it is in an autoconnect group or not. This function is called when the SC_EVT_ADV_REPORT event occurs. Make sure to enable autconnect to ensure the feature works as intended.

    Best Regards,

    Jan

  • Hi Jan,

    In the function

    static uint8_t acGroup[4] = {
    0x03,
    GAP_ADTYPE_LOCAL_NAME_SHORT,
    'G',
    'A'
    };

    //Check if advertiser is part of the group
    if (SimpleCentral_isMember(pAdvRpt->pData , acGroup, GROUP_NAME_LENGTH))
    {

    }

    but How can I add a group member?? 

  • Hi Ashutosh,

    A group member should be identified by the advertising content, so for a device to be considered a group member it must have the advertising data GA in its local short name section of its advertisements.

    Best Regards,

    Jan