1 Reply Latest reply on Dec 5, 2014 4:57 PM by MichaelF_56

    how to use white list

      I'd like to implement using white list in Wiced_Smart_SDK2.1.0.

      I use 2 boards, 1 is hello_sensor and the other is hello_client.

      But connection looks like being done not related with bd_addr even though I put the  blecm functions.

       

      I already read the discussions

      1. 20732 mac filtering possible?

      2. Adding and Removing Entries from Whitelist

       

      I modified hello_client like following

      ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

      BLECM_SELECT ADDR list_addr[4];

      UINT8 targetaddr[6] = {0x20, 0x73, 0x6A, 0x1C, 0x8C, 0xCA}; // hello_sensor bd_addr is 20736a1c9cca

       

      void hello_client_create(void)

      {

       

         .......................

         ..........................

         blecm_enableAddressSelection();

         BT_MEMCPY(list_addr[0].addr, targetaddr,6);

         list_addr[0].type = 0;

         blecm_SelectAddress(list_addr, 1);

       

      }

      ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

      whatever I write the value in targetaddr in hello_client while the board address of hello_sensor does not change, connection is always successful.

      What should I do or change in my code?