<?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>Recognise/Read new characteristic value</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14756/recognise-read-new-characteristic-value</link><description>So I&amp;#39;ve got my device running, set up two services with some read and write characteristics and it all works like charm now. 
 But now I want to react to values written into some characteristics (change of parameters for sensors) and can&amp;#39;t quite figure</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 Jun 2016 12:43:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14756/recognise-read-new-characteristic-value" /><item><title>RE: Recognise/Read new characteristic value</title><link>https://devzone.nordicsemi.com/thread/56349?ContentTypeID=1</link><pubDate>Mon, 27 Jun 2016 12:43:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9786464-f2c6-4948-b1b9-642db77745db</guid><dc:creator>DK999</dc:creator><description>&lt;p&gt;Found an answer in the deep web :)
Call a function inside the ble_evt_dispatch and let it interpret the messages for you:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;void get_config(ble_evt_t * p_ble_evt)
{	uint8_t *debug;
	ble_uuid_t uuid;
	char str[100];
	if(p_ble_evt-&amp;gt;header.evt_id == BLE_GATTS_EVT_WRITE)
	{	
		uuid = p_ble_evt-&amp;gt;evt.gatts_evt.params.write.uuid;
		debug = p_ble_evt-&amp;gt;evt.gatts_evt.params.write.data;
		
		if (uuid.uuid == YOUR_CUSTOM_UUID)    // without BASE!
			// do sth.
                   /* Some DEBUG */
		sprintf(str,&amp;quot;Value of Input = %d Value of UUID = %d\n&amp;quot;,*debug,uuid.uuid);
		SEGGER_RTT_WriteString(0, str);
	}	
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>