<?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 resolve a characteristic write failure on Android &amp;amp; nRF51?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20175/how-do-i-resolve-a-characteristic-write-failure-on-android-nrf51</link><description>Hi all, 
 I am trying to get an Android Nexus 5X app to work with an NRF chip, and facing some problems, specifically with writing to a characteristic. Really hope to get some help. 
 Specifically, I am trying to set a real-time clock (RTC) on the nrf</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 05 Mar 2017 20:15:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20175/how-do-i-resolve-a-characteristic-write-failure-on-android-nrf51" /><item><title>RE: How do I resolve a characteristic write failure on Android &amp; nRF51?</title><link>https://devzone.nordicsemi.com/thread/78598?ContentTypeID=1</link><pubDate>Sun, 05 Mar 2017 20:15:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65bc0b30-a8a3-44d3-ab31-d32dc6a9644b</guid><dc:creator>Ed Ang</dc:creator><description>&lt;p&gt;I managed to find the problem: I forgot to add bluetooth permissions line in my android manifest:

After I did this, everything appears to be working. Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I resolve a characteristic write failure on Android &amp; nRF51?</title><link>https://devzone.nordicsemi.com/thread/78594?ContentTypeID=1</link><pubDate>Sun, 05 Mar 2017 17:19:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cc59d99-4741-4da2-827f-9c6c12c4db88</guid><dc:creator>gorazd</dc:creator><description>&lt;p&gt;did you read this: &lt;a href="http://stackoverflow.com/questions/25330938/android-bluetoothgatt-status-133-register-callback"&gt;stackoverflow.com/.../android-bluetoothgatt-status-133-register-callback&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I resolve a characteristic write failure on Android &amp; nRF51?</title><link>https://devzone.nordicsemi.com/thread/78593?ContentTypeID=1</link><pubDate>Sun, 05 Mar 2017 16:22:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8009035-d453-4c9f-814c-23c5a39168d1</guid><dc:creator>Ed Ang</dc:creator><description>&lt;p&gt;Hey gorazd, thanks. I tried using only writeCharacteristic() and it return a success. However, on the write callback, I am now getting at Status 133 error. Any advice will be appreciated. Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I resolve a characteristic write failure on Android &amp; nRF51?</title><link>https://devzone.nordicsemi.com/thread/78591?ContentTypeID=1</link><pubDate>Sat, 04 Mar 2017 21:33:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6156e8bf-a4ef-4c13-a5c3-6950188336b1</guid><dc:creator>gorazd</dc:creator><description>&lt;p&gt;Try to do the writing after the reading is accomplished, that is after the onReadCharacteristic is executed. Or just comment out the reading part to see if thats the problem. Or use a delay. Can you do the writing with nrf connect app?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I resolve a characteristic write failure on Android &amp; nRF51?</title><link>https://devzone.nordicsemi.com/thread/78590?ContentTypeID=1</link><pubDate>Sat, 04 Mar 2017 20:37:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f5d917a-aafb-47ef-80fa-c369a17f9d2d</guid><dc:creator>Ed Ang</dc:creator><description>&lt;p&gt;Hi gorazd, thanks for your reply. In this case, I am only trying to write 8 bytes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I resolve a characteristic write failure on Android &amp; nRF51?</title><link>https://devzone.nordicsemi.com/thread/78592?ContentTypeID=1</link><pubDate>Sat, 04 Mar 2017 19:32:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21e8be5e-9b7c-4bc5-b299-9dfbf13816de</guid><dc:creator>gorazd</dc:creator><description>&lt;p&gt;It could be the length of the data you are writing. Try writing less than 20bytes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>