bug in CyBle_GapSetLocalName ?

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

cross mob
urchc_1533771
Level 5
Level 5
5 likes given First like received First like given

Please check CyBle_GapSetLocalName because when I change it length of new name can`t over old length.

   

Looks like bug.

0 Likes
1 Solution
himam_31
Employee
Employee
50 likes received 25 likes received 10 likes received

Hello,

   

We understand the issue. I have reported this to the software team.

   

Thanks,

   

Hima

View solution in original post

0 Likes
4 Replies
himam_31
Employee
Employee
50 likes received 25 likes received 10 likes received

Hello,

   

 

   

Thank you for the suggestion.

   

Please check the description about the CyBle_GapSetLocalName( 😞 " This API is used to set the local device name - a Characteristic of the 
    *  GAP Service. If the characteristic length entered in the component customizer
    *  is shorter than the string specified by the "name" parameter, the local device
    *  name will be cut to the length specified in the customizer."

   

So this seems to be an expected behavior. However, we thank you for giving the feedback.

   

 

   

Thanks,

   

Hima

0 Likes
urchc_1533771
Level 5
Level 5
5 likes given First like received First like given

It`s behavior expected by programmer created this function but not user.

   

Why you need to cut name? If I used name "BLE1"  and user want change to "Beacon placed near kitchen" ?

   

What a problem with this ? You can read inside function : "First need to get the maximum length of the characteristic data in the GATT  database to make sure there is enough place for the data. The length  can't be longer than 248 " 

   

Just make buffer big enough and don`t cut.

0 Likes
himam_31
Employee
Employee
50 likes received 25 likes received 10 likes received

Hello,

   

We understand the issue. I have reported this to the software team.

   

Thanks,

   

Hima

0 Likes
urchc_1533771
Level 5
Level 5
5 likes given First like received First like given

It will get time...

   

How I can use my version of function instead of generated ? 

0 Likes