<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>The length of nRF51822 device name</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24222/the-length-of-nrf51822-device-name</link><description>Hello everyone, I recently use the nRF51822 with SD9 and S110, I found that the device name was define as: #define BLE_GAP_DEVNAME_MAX_LEN 31
is it means the max length of device name is 31 bytes ? but when I try to change the device name as &amp;quot;0123456789ABCDEFABCDEF</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Aug 2017 08:27:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24222/the-length-of-nrf51822-device-name" /><item><title>RE: The length of nRF51822 device name</title><link>https://devzone.nordicsemi.com/thread/95364?ContentTypeID=1</link><pubDate>Thu, 10 Aug 2017 08:27:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d601b18-0c7d-4277-8920-4f326ac88250</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;No, DEVICE NAME string cannot be 31 Bytes because whole Adv. data (or Scan resp. data) have 31 Bytes max and GAP AD element overhead are at least 2 bytes (Tag and Length). In addition if you want to add Device Name AD into Adv. data then you have at least 3 bytes of additional overhead because of mandatory Flags AD element. When it comes to Device Name Characteristic value that can be pretty much as long as you want so it should accommodate full string without need of any shortening.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>