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...!
Thanks ,
Ashutosh Singh
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.
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...!
Thanks ,
Ashutosh Singh
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