cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

Contributor

Hi,

   

I have my GAPP advertising set up with the local device name in full checked for the advertisement packet, but although CySmart finds the device, it cannot read the name, and neither can my custom android app.  

   

In the Android app, the name string should be 'RGB LED', but shows up as char '\u0002' which returns a garbage string.

   

Any ideas?

   

Thank you,
Tom

0 Likes
Reply
1 Solution
Contributor

Hi,

   

I got this to work by placing the name modification code in the correct location - AFTER the CyBLE_Start().

   

Regards,
Tom

View solution in original post

0 Likes
Reply
4 Replies
Anonymous
Not applicable

Are you modifying the advertisement name at some point?

   

Without seeing your project/settings it would be hard to guess the problem.

   

Double check you: set the name in the BLE component, the data in the advertisement packet looks correct (raw data that is), and that you aren't changing the value with software later.

0 Likes
Reply
Moderator
Moderator

Hi Tom,

   

Could you please share your project for us to test?

   

Thanks,
Anjana

0 Likes
Reply
Contributor

Hi,

   

I got this to work by placing the name modification code in the correct location - AFTER the CyBLE_Start().

   

Regards,
Tom

View solution in original post

0 Likes
Reply
Moderator
Moderator

Hi Tom,

   

Yes , you should keep the changes in BLE adv data or device name only after BLE start.

   

Thanks,
Anjana

0 Likes
Reply