<?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>Cant read characteristic value without pointer</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91446/cant-read-characteristic-value-without-pointer</link><description>I have two functions, which both try reading incoming data for a characteristic. 
 I would expect be the same address in both functions, since the p_ble_evt write struct should just be copied byte by byte to the memory allocated for write_evt in the broken</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 15 Sep 2022 13:06:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91446/cant-read-characteristic-value-without-pointer" /><item><title>RE: Cant read characteristic value without pointer</title><link>https://devzone.nordicsemi.com/thread/386406?ContentTypeID=1</link><pubDate>Thu, 15 Sep 2022 13:06:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee3eff5f-78f2-4d2a-8951-64e3cedd777e</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am not clear about your question.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;#39;&amp;#39;be the same address in both functions, since the p_ble_evt write struct should just be copied byte by byte to the memory allocated for write_evt in the broken case.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Am I understanding the = operator wrong?&amp;#39;&amp;#39;&lt;/p&gt;
&lt;p&gt;Do you mean to copy large amount of data to memory?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;Kazi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cant read characteristic value without pointer</title><link>https://devzone.nordicsemi.com/thread/384192?ContentTypeID=1</link><pubDate>Wed, 31 Aug 2022 15:32:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cd66c39-5405-4e19-9e68-d0ebcc189627</guid><dc:creator>Daniel Dakhno</dc:creator><description>&lt;p&gt;I don&amp;#39;t quite see how that answers my question of why the copying using the &amp;quot;=&amp;quot; operator doesn&amp;#39;t work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cant read characteristic value without pointer</title><link>https://devzone.nordicsemi.com/thread/384005?ContentTypeID=1</link><pubDate>Tue, 30 Aug 2022 23:49:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02e3d32e-0c6d-492c-801e-fc8c8f0a789b</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;ble_gatts_evt_write_t *write_evt = &amp;amp;p_ble_evt , this one is correct as the write_evt pointer will take the address of p_ble_evt (&lt;span&gt;Pointer to the event received from BLE stack).&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kazi Afroza Sultana&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>