<?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>sending different notification</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13687/sending-different-notification</link><description>Hi, 
 I&amp;#39;m developing a hid keyboard + lbs(led button) application, in my design there&amp;#39;re several primary services and each with different characteristic(with read/write notification), when the button is pressed, a notify of the button status is sent</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 May 2016 15:33:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13687/sending-different-notification" /><item><title>RE: sending different notification</title><link>https://devzone.nordicsemi.com/thread/52303?ContentTypeID=1</link><pubDate>Fri, 06 May 2016 15:33:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e95b7c6b-5068-4cf1-a530-a4c763d9c67f</guid><dc:creator>James Yu</dc:creator><description>&lt;p&gt;You choose which services to use and on which characteristic the notification is sent, since you have a structure for each service you use and a handle for each characteristic.&lt;/p&gt;
&lt;p&gt;For example if you have the following 2 services:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static ble_nus_t m_nus;
static ble_hids_t m_hids;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then when your button is pressed:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;// Sends data on an Boot Keyboard Input Report characteristic
ble_hids_boot_kb_inp_rep_send(p_hids, INPUT_REPORT_KEYS_MAX_LEN, data);

// Sends data on an Input Report characteristic.
ble_hids_inp_rep_send(p_hids, INPUT_REPORT_KEYS_INDEX, INPUT_REPORT_KEYS_MAX_LEN, data);

// Sends a notification on the RX characteristic.
ble_nus_string_send(&amp;amp;m_nus, data_array, index);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You can also take a look at the &lt;strong&gt;ble_app_hids_keyboard&lt;/strong&gt; example in the SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>