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.

Add device to white-list

Hello

I know, that I can't use HCI commands like "LE Add Device To White List" but I haven't found a gap command for adding a device to the whitelist.

How is it possible to add a device to the whitelist?

Thanks for the help

  • The command "LE Add Device To White List" is one of the few HCI commands that does not have a corresponding GAP API function. Therefore, you can call it directly from your application. I understand that it is a little bit confusing. We hope to add some notes about these commands into our documentation to make it clearer which HCI commands should and shouldn't be used by the application.

  • Hi Willis ,

    Adding whitelist needs to be done on the Center side (hostTestReleaseall code ) or the keyfob demo code ??

    What is whitelist ? It needs to enabled on the Center side (using Btool ).

    My target is to make my keyfob works only with one master .I have tried the following

    1.I have tried the connectable directed advertisement , but it is not working , i have searched through-out the forum , no answers for Directed advertisement questions :( 

    2.I have read there is an option called " White List " ? But no where it is documented ;( Is is possible to achieve my target with the help of white list ! 

    To my understanding ,I have to add the address of the keyfob in to the white list of the Center (Host Test Release all ) code ,then upon enabling the whitelist option in the Btool  ,it can able to scan and connect to the Peripheral .Kindly correct me if am wrong ! 

    Expecting your valuable reply ! 

    Regards,

    Senthil

  • I know what are the parameters required, but, how do you actually call that? I can do scanning on my arduino, no problem. But if I were to include that command, I cannot compile the sketch as that command is not declared in the scope.