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

Studio Bluetooth Forum Discussions

YaTr_3516311
Level 5
Level 5
25 sign-ins First solution authored 100 replies posted

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
Moderator
750 replies posted 500 likes received 500 replies posted

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
Moderator
750 replies posted 500 likes received 500 replies posted

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...