4 Replies Latest reply on Jan 11, 2017 11:31 PM by urchc_1533771

    bug in CyBle_GapSetLocalName ?

    urchc_1533771

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

         

      Looks like bug.

        • 1. Re: bug in CyBle_GapSetLocalName ?
          himam_31

          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

          • 2. Re: bug in CyBle_GapSetLocalName ?
            urchc_1533771

            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.

            • 3. Re: bug in CyBle_GapSetLocalName ?
              himam_31

              Hello,

                 

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

                 

              Thanks,

                 

              Hima

              • 4. Re: bug in CyBle_GapSetLocalName ?
                urchc_1533771

                It will get time...

                   

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