<?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>Issue triggering event when receiving BLE data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45639/issue-triggering-event-when-receiving-ble-data</link><description>Hey all I&amp;#39;m having [another] issue I just can&amp;#39;t seem to crack. I think this is just down to me not understanding exactly how this works. I&amp;#39;m trying to trigger an event, or events, when a GATT write happens from the client to my app. 
 I&amp;#39;m following the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 Apr 2019 00:20:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45639/issue-triggering-event-when-receiving-ble-data" /><item><title>RE: Issue triggering event when receiving BLE data</title><link>https://devzone.nordicsemi.com/thread/179860?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2019 00:20:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fefb3aac-1fd3-4e40-8e18-8e6f039909c9</guid><dc:creator>Adam Gerken</dc:creator><description>&lt;p&gt;Alright, after a couple beers worth of reading through the tutorial several times I found the couple small omissions I had, and all seems to be working. Thanks for pointing me in the right direction!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue triggering event when receiving BLE data</title><link>https://devzone.nordicsemi.com/thread/179851?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2019 19:06:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08ff1d63-79d0-46ff-a3d4-ea108d7e3ada</guid><dc:creator>Adam Gerken</dc:creator><description>&lt;p&gt;Yeah, I had all those. The tutorial looks good, I didn&amp;#39;t have the forward deceleration of my custom type above the OBSERVER stuff... it seems to be getting farther now. The thing is, blinky has this below the OBSERVER so I&amp;#39;m not sure how that works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue triggering event when receiving BLE data</title><link>https://devzone.nordicsemi.com/thread/179829?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2019 15:56:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ab50af7-2edf-4246-97f7-1ea5646a9706</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you getting any events at all in&amp;nbsp;ble_ctcws_on_ble_evt() ? If you place a breakpoint at the function entry, do you hit the breakpoint?&amp;nbsp;Did you register the function with&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/group__nrf__sdh__ble.html?cp=4_0_0_6_11_65_2_3#gad162c1f4d4c248e4d4567dfa70e0e10e"&gt;NRF_SDH_BLE_OBSERVER&lt;/a&gt;() ?&lt;/p&gt;
&lt;p&gt;Something like this ?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define BLE_CTCWS_DEF(_name)                                                                          \
static ble_ctcws_t _name;                                                                             \
NRF_SDH_BLE_OBSERVER(_name ## _obs,                                                                 \
                     BLE_CTCWS_BLE_OBSERVER_PRIO,                                                     \
                     ble_ctcws_on_ble_evt, &amp;amp;_name)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;where&amp;nbsp;BLE_CTCWS_BLE_OBSERVER_PRIO is e.g. 2&lt;/p&gt;
&lt;p&gt;And then in main.c, you have something like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;BLE_CTCWS_DEF(m_ctcws);    /**&amp;lt; My Service instance. */&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I would recommend that you take a look at&amp;nbsp;&lt;a href="https://github.com/NordicPlayground/nRF52-Bluetooth-Course"&gt;this&amp;nbsp;tutorial &lt;/a&gt;on how to create custom services.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>