cancel
Showing results for 
Search instead for 
Did you mean: 

WICED Studio Bluetooth

YaTr_3516311
New Contributor II

Hi,

I want to check connection and transfer data function via hello_sensor demo example. I use APP in mobile phone to simulate pheriphery. But I cant judge which one is my APP pheriphey Because I just list mac address and UUID. I don't know how to print pheriphy's "name". What can I do?

pastedImage_0.png

0 Likes
1 Solution
SheetalJ
Moderator
Moderator

Hi Treacy,

In your callback function, you can compare the peripheral device name which you want using strncmp and and connect to that device.

Please refer implementation here: CypressAcademy_WBT101_Files/Projects/ch04d/key_ch04d_ex02_observer_mydev at master · cypresssemicond...

View solution in original post

1 Reply
SheetalJ
Moderator
Moderator

Hi Treacy,

In your callback function, you can compare the peripheral device name which you want using strncmp and and connect to that device.

Please refer implementation here: CypressAcademy_WBT101_Files/Projects/ch04d/key_ch04d_ex02_observer_mydev at master · cypresssemicond...

View solution in original post