<?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>Is &amp;#39;sd_ble_gatts_hvx()&amp;#39; api thread safe</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47389/is-sd_ble_gatts_hvx-api-thread-safe</link><description>Hi, 
 
 Are softdevice&amp;#39;s api calls thread safe (specifically speaking sd_ble_gatts_hvx ()) - 
 i.e. Will a concurrent call to sd_ble_gatts_hvx () from several threads corrupt the data sent (SDK 14.2) 
 Or, does the sd uses some type of atomic queueing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 May 2019 12:16:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47389/is-sd_ble_gatts_hvx-api-thread-safe" /><item><title>RE: Is 'sd_ble_gatts_hvx()' api thread safe</title><link>https://devzone.nordicsemi.com/thread/187900?ContentTypeID=1</link><pubDate>Mon, 20 May 2019 12:16:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:626d92fe-c0db-49a0-860e-04a22b21ff22</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Yes. The softdevice calls are thread safe. Remember to check the return value when using the softdevice calls. If sd_ble_gatts_hvx() returns NRF_SUCCESS (0) then the packet is queued internally in the softdevice, and you can queue more packets at once, from different places in your project.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>