<?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>BLE notification and write value not working</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27536/ble-notification-and-write-value-not-working</link><description>I have followed the well written blog post on how to create custom service on this site. I downloaded the sdk 13 code for the same and i can send and receive values on the Nordic android app. 
 Blog: devzone.nordicsemi.com/.../ 
 SDK 13 code: devzone</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 28 Nov 2017 08:34:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27536/ble-notification-and-write-value-not-working" /><item><title>RE: BLE notification and write value not working</title><link>https://devzone.nordicsemi.com/thread/108740?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2017 08:34:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73eb0e30-7e87-4fd0-b754-5795c7b68476</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;@ Rahul: To answer your third question: In the tutorial, the write without response property for the characteristic is not set. That is probably why you get the &amp;quot;Write Without Response property &amp;quot;-warning. I&amp;#39;m not familiar with Swift, but maybe there is an API call looking something like this: CBCharacteristicWriteType.withResponse (Notice this is &lt;em&gt;with&lt;/em&gt; response and not &lt;em&gt;without&lt;/em&gt;). You can also try to set the read without response property on the peripheral side when you initiate the characteristic.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE notification and write value not working</title><link>https://devzone.nordicsemi.com/thread/108739?ContentTypeID=1</link><pubDate>Fri, 24 Nov 2017 13:34:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:522bb40f-1cbf-4c99-b445-186dba4fb9df</guid><dc:creator>butch</dc:creator><description>&lt;p&gt;Also, is the string representation of a UUID like &amp;quot;0xFF&amp;quot; instead of &amp;quot;FF&amp;quot;?  Again, just random thought, not knowing where the Swift code came from.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE notification and write value not working</title><link>https://devzone.nordicsemi.com/thread/108738?ContentTypeID=1</link><pubDate>Fri, 24 Nov 2017 13:00:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:560fbf2a-e5ff-486c-a85a-e110b843cffc</guid><dc:creator>butch</dc:creator><description>&lt;p&gt;May I ask what app (what open source code repository) you might be using for Swift on iOS? (Because I am starting a similar project as yours.)&lt;/p&gt;
&lt;p&gt;Random thoughts:  Is &amp;quot;28\0&amp;quot; correct?   If that is a C string type, it has a null terminator without you needing to specify one.  I suppose the Swift String type wants you to specify a null terminator?  Because you say it works on Android, but not in Swift iOS, is the bug on the central side?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE notification and write value not working</title><link>https://devzone.nordicsemi.com/thread/108737?ContentTypeID=1</link><pubDate>Thu, 23 Nov 2017 17:14:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8170db77-3d41-4568-b1a1-a4fcf5900dec</guid><dc:creator>MartinBL</dc:creator><description>&lt;ol&gt;
&lt;li&gt;In my case it seems to be the other way around. Have you enabled logging in sdk_config.h? Search for NRF_LOG_ENABLED and set it to 1. I think my plan was to change all printf statements to NRF_LOG_INFO().&lt;/li&gt;
&lt;li&gt;That looks like a variable&amp;#39;s &lt;em&gt;address&lt;/em&gt; in RAM rather than the actual variable value. It seems to work fine when I try the code in your link with an Android phone. There seems to be a bug in the on_ble_write() function too. Try to use &lt;code&gt;if((data_buffer &amp;amp; 0x0000FFFF) == .....)&lt;/code&gt; instead of &lt;code&gt;if(data_buffer == .....)&lt;/code&gt; otherwise the statements will never be true.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>