<?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>Calling SoftDevice methods in a BLE callback</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53178/calling-softdevice-methods-in-a-ble-callback</link><description>I have always understood it to be dangerous to invoke a call in a callback. It is not clear to me what the callback model is in SoftDevice so I would like to know when it is safe to invoke sd_* calls when handling BLE events. In the pc-ble-driver example</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 14 Oct 2019 13:37:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53178/calling-softdevice-methods-in-a-ble-callback" /><item><title>RE: Calling SoftDevice methods in a BLE callback</title><link>https://devzone.nordicsemi.com/thread/214875?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2019 13:37:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3331f9a-b072-4e20-bf73-f17f60cdd121</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;OK, then I suggest you continue in that case to avoid duplicating information.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling SoftDevice methods in a BLE callback</title><link>https://devzone.nordicsemi.com/thread/214868?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2019 13:30:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31cfadf2-5959-42e1-af8f-098b1ade07c4</guid><dc:creator>brianreinhold</dc:creator><description>&lt;p&gt;unsupported parameters. But clearly it is not. In other cases I get cant encode error. This is already posted as another issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling SoftDevice methods in a BLE callback</title><link>https://devzone.nordicsemi.com/thread/214832?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2019 12:28:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2685e8a-055b-4339-b5bf-f8bf886c0d3a</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Generally, there is no problem making SoftDevice calls from within the SoftDevice event handler, provided the interrupt priority is not too high. There may be some intricacies when using serialization or int he pc-ble-driver that I am not aware of though, so I am checking with the main pc-ble-driver developer an will get back to you.&lt;/p&gt;
&lt;p&gt;Update: I checked with the pc-ble-driver developers, and this should be OK. What problems do you get when you call&amp;nbsp;sd_ble_gap_sec_params_reply()? What is the return value? Other issues?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>