This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

device length about sd_ble_gap_device_name_set

Hi I use SDK 12.3 and sdk 2.0.1 , and set a device name length is 21 like "1234567890ABCDEFGHIJK" by sd_ble_gap_device_name_set; but in the advertise data the name length is only 18 and the name is "1234567890ABCDEFGH" ;

and on Android Phone display name is "1234567890ABCDEFGH", length 18; but on iOS Phone is "1234567890ABCDEFGHIJK" length 21;

so I don`t know which one is right , and why lost 3 octets name?

Parents
  • Take a look at the answer to this case. In the 31 bytes you have available to send in each packet, you have the device name field, a flag field, a 16-bit service class UUID and manufacturer specific data. So you cannot use all of the 31 bytes to set as your device name. The other values also need to be initialized and sent in the same packet.

Reply
  • Take a look at the answer to this case. In the 31 bytes you have available to send in each packet, you have the device name field, a flag field, a 16-bit service class UUID and manufacturer specific data. So you cannot use all of the 31 bytes to set as your device name. The other values also need to be initialized and sent in the same packet.

Children
Related