<?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>Gatt connection writing via nrf_connect app only receiving a single byte</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58561/gatt-connection-writing-via-nrf_connect-app-only-receiving-a-single-byte</link><description>Hi, 
 I have a modified template of the ble_app_template example from sdk 15 NRF58240-dk pca 10056 s140. 
 I have written a custom function as per this tutorial : https://github.com/bjornspockeli/custom_ble_service_example 
 I am using the onwrite function</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 03 Mar 2020 13:49:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58561/gatt-connection-writing-via-nrf_connect-app-only-receiving-a-single-byte" /><item><title>RE: Gatt connection writing via nrf_connect app only receiving a single byte</title><link>https://devzone.nordicsemi.com/thread/237784?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2020 13:49:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc5863a1-c876-408c-9b6a-829e14feef88</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;The data was not wrong it was just always empty. I recreated it again in another example and it now works. I am not specifically sure why it did not. Could be the data I was passing into the function was not the correct size. I changed it to a uint32_t and am now passing in integer values.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Gatt connection writing via nrf_connect app only receiving a single byte</title><link>https://devzone.nordicsemi.com/thread/237721?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2020 12:28:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a0f262e-4b69-48d3-a3ed-259215405b08</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]But when I change my variable from a uint8 to anything bigger it does not read the data.[/quote]
&lt;p&gt;Can you give more details on what you mean by &amp;quot;does not read data&amp;quot;? Is the data wrong? No data? Any error codes?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>