About the bleprofile_GenerateScanRspData function?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

if I calling sequence is like this:

bleprofile_GenerateADVData(adv,2);

bleprofile_GenerateScanRspData(adv_scan,1);

bleprofile_Discoverable(HIGH_UNDIRECTED_DISCOVERABLE, NULL);

ths BCM20732 will not Broadcast!

if I calling sequence is like this:

bleprofile_GenerateADVData(adv,2);

bleprofile_Discoverable(HIGH_UNDIRECTED_DISCOVERABLE, NULL);

bleprofile_GenerateScanRspData(adv_scan,1);


ths BCM20732 will Broadcast but the ScanRspData is not right! The ScanRspData is the default data which is not i config data.


Please give an answer ,Thanks!

0 Likes
1 Solution

Try to put

{

    extern UINT8 bleprofile_adv_num;

    extern UINT8 bleprofile_scanrsp_num;

    bleprofile_adv_num = 0x0;

    bleprofile_scanrsp_num = 0x0;

}

before

bleprofile_Init(bleprofile_p_cfg);

View solution in original post

0 Likes
3 Replies