I have compiled & run the Btpmp example on mobile phone. Now I want to change the Generic Inquiry Access Code (GIAC) to Limited Inquiry Access code (LIAC) to discover only desired bluetooth devices not all.
I have tried to set LIAC on both the devices and When I start discover devices, It shows no devices found. I have also tried to set 1 mobile phone in LIAC mode and other in GIAC. The phone which is in GIAC mode is able to search all phones including a phone with LIAC mode, but it is not able to discover services of a phone (LIAC mode).
Here is function, which is used to set Inquiry Access code:
// wipe existing device data list, start fresh
// load protocol for discovery
// initialize host resolver
User::LeaveIfError(iResolver.Open(iSocketServ, pdesc.iAddrFamily, pdesc.iProtocol));
// start device discovery by invoking remote address lookup
iAddr.SetIAC(KLIAC); // or KGIAC
iResolver.GetByAddress(iAddr, iEntry, iStatus);
If you have any idea, please let me know.