<?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>ANCS message length</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75010/ancs-message-length</link><description>Hi, 
 I&amp;#39;ve got ANCS working well in my application, but I seem unable to increase the length of the notification&amp;#39;s message that I receive. 
 BLE_ANCS_ATTR_DATA_MAX is defined in nrf_ble_ancs_c.h as 32 - but it feels like it&amp;#39;s not expected that we change</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 May 2021 15:13:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75010/ancs-message-length" /><item><title>RE: ANCS message length</title><link>https://devzone.nordicsemi.com/thread/309300?ContentTypeID=1</link><pubDate>Tue, 11 May 2021 15:13:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:439df48a-12ee-4f16-8a7d-9b110c7c1a93</guid><dc:creator>Gordon</dc:creator><description>&lt;p&gt;Sorry - totally my fault.&lt;/p&gt;
&lt;p&gt;Literally all you need is to increase&amp;nbsp;&lt;span&gt;BLE_ANCS_ATTR_DATA_MAX. I was just increasing it on the *wrong* nRF SDK version (the app has to target different SDKs for different devices).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It still needs the code change in the Nordic SDK to work (which feels like a bit&amp;nbsp;of a shame). But otherwise is fine.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;d just suggest removing the check &amp;quot;&amp;nbsp;|| (len &amp;gt; BLE_ANCS_ATTR_DATA_MAX)&amp;quot; in nrf_ble_ancs_c_attr_add - then you can leave&amp;nbsp;BLE_ANCS_ATTR_DATA_MAX (and the associated app_id buffer) the same size and everything seems to work great&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>