<?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>How do I reject an write to a character if the value is out of range?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13965/how-do-i-reject-an-write-to-a-character-if-the-value-is-out-of-range</link><description>I&amp;#39;m modifying the LED button example to fit my custom characteristic. 
 How could I modify the functionns to reject a value if the value is not in range? 
 I have the following functione that get called in secuence when the LED characteristic is written</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 19 May 2016 17:33:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13965/how-do-i-reject-an-write-to-a-character-if-the-value-is-out-of-range" /><item><title>RE: How do I reject an write to a character if the value is out of range?</title><link>https://devzone.nordicsemi.com/thread/53338?ContentTypeID=1</link><pubDate>Thu, 19 May 2016 17:33:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41b3d002-3aa5-4c81-84a9-7933848bc362</guid><dc:creator>mosi</dc:creator><description>&lt;p&gt;I think I found an answer here: &lt;a href="https://devzone.nordicsemi.com/question/3188/problem-with-writing-value-to-gatt-attribute-in-connection/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I reject an write to a character if the value is out of range?</title><link>https://devzone.nordicsemi.com/thread/53337?ContentTypeID=1</link><pubDate>Thu, 19 May 2016 16:31:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a67fe2c-2b10-4492-b92a-5276b6aa8669</guid><dc:creator>mosi</dc:creator><description>&lt;p&gt;I want to tell the client that the value it sent was not accepted.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I reject an write to a character if the value is out of range?</title><link>https://devzone.nordicsemi.com/thread/53336?ContentTypeID=1</link><pubDate>Thu, 19 May 2016 14:57:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9a29300-e3c6-4c0d-b873-b7b451c23f71</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;What do you want to accomplish with this &amp;quot;reject&amp;quot;? Tell the client that the value is invalid?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>