<?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>How to combine Buttonless DFU, battery service and a custom service?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66362/how-to-combine-buttonless-dfu-battery-service-and-a-custom-service</link><description>Hi, there: 
 I am developing on nRF52840 platform with SDK Version 17.0.0_9d13099. I am developing based on ble_peripheral/ble_app_buttonless_dfu. 
 I succeeded to combine DFU and Battery Service. I tried to read related topics but still can&amp;#39;t find a</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 25 Sep 2020 11:43:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66362/how-to-combine-buttonless-dfu-battery-service-and-a-custom-service" /><item><title>RE: How to combine Buttonless DFU, battery service and a custom service?</title><link>https://devzone.nordicsemi.com/thread/271488?ContentTypeID=1</link><pubDate>Fri, 25 Sep 2020 11:43:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a201b5f6-0e87-4cfb-a58a-e4374e4617dd</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="Joshhsu.tw"]After defining &amp;quot;DEBUG&amp;quot; in preprocessor, it turned out that the error come from ble_advertising_init, error description is &amp;quot;NRF_ERROR_INVALID_PARAM&amp;#39;.[/quote]
&lt;p&gt;Well done - this tells us that the problem here is the parameters passed to ble_advertising_init, as written in the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.0.2%2Fgroup__ble__advertising.html&amp;amp;resultof=%22%62%6c%65%5f%61%64%76%65%72%74%69%73%69%6e%67%5f%69%6e%69%74%22%20"&gt;ble_advertising_init API Reference documentation&lt;/a&gt;.&lt;br /&gt;What is the entire contents of your ble_advertising_init_t? Are you advertising with a device name and appearance?&lt;br /&gt;&lt;br /&gt;I suspect that either your packet is too long ( most likely ), since you are trying to include all those UUID&amp;#39;s in your advertising, and the advertising packet length is limited to 31 bytes total.&lt;br /&gt;Either that, or you are making an invalid configuration.&lt;br /&gt;Could you try to run this again, but leave out the BAS and DIS UUID&amp;#39;s from your advertisement? See if this resolves your error - if it does, then we know that the length is the problem. If the issue persists, then we know that it is an invalid configuration ( depending on the remaining content of your advertising packet, of course. ).&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to combine Buttonless DFU, battery service and a custom service?</title><link>https://devzone.nordicsemi.com/thread/271439?ContentTypeID=1</link><pubDate>Fri, 25 Sep 2020 07:18:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:916ea71d-f023-4744-86f0-781157ab461a</guid><dc:creator>Joshhsu.tw</dc:creator><description>&lt;p&gt;After defining &amp;quot;DEBUG&amp;quot; in preprocessor, it turned out that the error come from ble_advertising_init, error description is &amp;quot;NRF_ERROR_INVALID_PARAM&amp;#39;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>