<?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 only transmitting 8 bytes</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93455/ble-only-transmitting-8-bytes</link><description>nRF5 SDK 17.2.0, nRF52840 
 Okay, I am just so lost. I am trying to set a characteristic&amp;#39;s gatts value BEFORE connecting such that it is a 192 byte array. However when I read the characteristic&amp;#39;s data on lightblue, it&amp;#39;s just 8 bytes long. I have adjusted</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 02 Nov 2022 16:00:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93455/ble-only-transmitting-8-bytes" /><item><title>RE: BLE only transmitting 8 bytes</title><link>https://devzone.nordicsemi.com/thread/393733?ContentTypeID=1</link><pubDate>Wed, 02 Nov 2022 16:00:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d1b4b05-c9ea-40a9-bb33-bbc891cfe98f</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Great to hear that you figured it out &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE only transmitting 8 bytes</title><link>https://devzone.nordicsemi.com/thread/393729?ContentTypeID=1</link><pubDate>Wed, 02 Nov 2022 15:19:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3e91f6b-3dfa-478f-848d-2cdcfb540462</guid><dc:creator>JGusler</dc:creator><description>&lt;p&gt;I have hardcoded to the length I need and I believe I&amp;#39;m getting it all (it&amp;#39;s encrypted and I&amp;#39;m only checking length)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE only transmitting 8 bytes</title><link>https://devzone.nordicsemi.com/thread/393727?ContentTypeID=1</link><pubDate>Wed, 02 Nov 2022 15:15:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2528d07-0b33-4def-a250-0e395cb64ce7</guid><dc:creator>JGusler</dc:creator><description>&lt;p&gt;Youre right, my brain wasn&amp;#39;t working when I wrote this, it is 4 bytes, 8 nibbles. I will try just hard coding it since I know what I need to send&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE only transmitting 8 bytes</title><link>https://devzone.nordicsemi.com/thread/393677?ContentTypeID=1</link><pubDate>Wed, 02 Nov 2022 13:39:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f51464b-61db-49d9-b49e-fc6a8b16feab</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Jonathan&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think they way you set the length will work. This trick using sizeof works on arrays, but not on a pointer to an array.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you check what the value of the value.len field is using the logger or debugger?&lt;/p&gt;
&lt;p&gt;The confusing part is why you can read 8 bytes. I would expect&amp;nbsp;sizeof(custom_value)/sizeof(custom_value[0]) to equal 4...&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>