to compare peerbdaddr from scan report to whitelist address

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

cross mob
Anonymous
Not applicable
        how to convert peerbdaddr of scan report to CYBLE_GAP_BD_ADDR_T, so that i can compare the scan report address with whitelist address or is there another way to compare the same. I was trying to write the code for comparison as if(scanreport->peerbdaddr == whitelistbackup) then execute this... whitelistbackup holds all the address in the whitelist and it is of the struct CYBLE_GAP_BD_ADDR_T, but for peerbd address i cannot use that. please help Vaisakh Haridas vaisakh.hari21@gmail.com +91 8879009971   
0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
AnjanaM_61
Moderator
Moderator
Moderator
10 questions asked 5 comments on KBA First comment on KBA

Hello Vaisakh,

   

I think you are not comparing the address in correct format.

   

You can refer the address comparison between the adv report address and bonded list device address in the attached project.

   

Do the same procedure for your application.

   

Thanks,

   

Anjana

View solution in original post

0 Likes
1 Reply
lock attach
Attachments are accessible only for community members.
AnjanaM_61
Moderator
Moderator
Moderator
10 questions asked 5 comments on KBA First comment on KBA

Hello Vaisakh,

   

I think you are not comparing the address in correct format.

   

You can refer the address comparison between the adv report address and bonded list device address in the attached project.

   

Do the same procedure for your application.

   

Thanks,

   

Anjana

0 Likes