<?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>Get NO_MEM error while trying to add second ADV set (S140/52840)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62296/get-no_mem-error-while-trying-to-add-second-adv-set-s140-52840</link><description>Hi All, 
 we&amp;#39;re developing beacon that advertise both legacy and long range at the same time. 
 however we got NO_MEM error while adding 2nd adv set 
 
 
 
 any limit on multiple ADV handle on S140 ? 
 BR, 
 Sam</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Jun 2020 11:33:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62296/get-no_mem-error-while-trying-to-add-second-adv-set-s140-52840" /><item><title>RE: Get NO_MEM error while trying to add second ADV set (S140/52840)</title><link>https://devzone.nordicsemi.com/thread/253765?ContentTypeID=1</link><pubDate>Mon, 08 Jun 2020 11:33:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ee9fb4b-c9eb-4947-9c5b-47a09dd44e76</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Looks like this should have been documented more clearly, but the Softdevice supports only one advertisement set, hence the NO_MEM error when you try to add another one. But as mentioned in the API documentation, the way to work around this is to update the existing set.&amp;nbsp; You can for instance do this by setting up a repeated timer (the low power app timer module is suitable for this purpose) that periodically restarts advertising. Alternatively, instead of the app timer,&amp;nbsp; you could use a shorter adv. duration then use the generated timeout event to trigger advertising start with a new paramaters.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>