<?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>Is it possible to send entire array over ble</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69848/is-it-possible-to-send-entire-array-over-ble</link><description>Hi, 
 Is it possible to send entire array over ble? 
 Char *data100]; 
 For (I=0, I&amp;lt;100, I++) 
 { 
 Data[i] =timestamp_data; 
 Ble_nus_data_send(&amp;amp;m_nus, &amp;amp;data,size of (data), m_conn_handle); 
 } 
 Is this format correct???</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 25 Dec 2020 12:01:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69848/is-it-possible-to-send-entire-array-over-ble" /><item><title>RE: Is it possible to send entire array over ble</title><link>https://devzone.nordicsemi.com/thread/286592?ContentTypeID=1</link><pubDate>Fri, 25 Dec 2020 12:01:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edb3e098-2856-4e7e-9022-29cb849a6eaa</guid><dc:creator>ps_anu</dc:creator><description>&lt;p&gt;i&amp;nbsp; tried the same way it doesn&amp;#39;t worked&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to send entire array over ble</title><link>https://devzone.nordicsemi.com/thread/286577?ContentTypeID=1</link><pubDate>Thu, 24 Dec 2020 22:21:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ad121cf-15fb-4953-8e6e-2d91999cdac3</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Try something like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;Char data[100];
uint16_t Length = Sizeof(data);
For (uint16_t I=0, I&amp;lt;100, I++)
{
  Data[i] = timestamp_data;
}
Ble_nus_data_send(&amp;amp;m_nus, &amp;amp;data, &amp;amp;Length, m_conn_handle);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t really help further&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to send entire array over ble</title><link>https://devzone.nordicsemi.com/thread/286534?ContentTypeID=1</link><pubDate>Thu, 24 Dec 2020 04:26:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6402b54e-f710-448e-937b-5def84d97a02</guid><dc:creator>ps_anu</dc:creator><description>&lt;p&gt;i don&amp;#39;t understand your code&amp;nbsp; . please explain for my content above code&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to send entire array over ble</title><link>https://devzone.nordicsemi.com/thread/286516?ContentTypeID=1</link><pubDate>Wed, 23 Dec 2020 22:34:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e24ad9b-3a08-4ea5-9857-49e70c48fb86</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Yes; I just posted this elsewhere and it might be helpful; note your &amp;quot;size of (data)&amp;quot; is an address of a variable containing the number of bytes - see the Nordic code describing &lt;em&gt;ble_nus_data_send()&lt;/em&gt; for more details:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;uint32_t StoredPacketTransmit(BlePacketFormat_t *pPacketToTransmit, uint16_t PacketLength)
{
    uint32_t err_code = SOMETHING_BAD;
    // Define the structure to identify the Nordic UART Service
    ble_nus_t * p_m_nus = get_mNUS();
    if (pPacketToTransmit &amp;amp;&amp;amp; PacketLength &amp;amp;&amp;amp; p_m_nus)
    {
        err_code = ble_nus_data_send(p_m_nus, pPacketToTransmit, &amp;amp;PacketLength);
        if (err_code == NRF_SUCCESS)
        {
            // Packet sent, allow next packet to be built when sufficent SAADC samples available
        }
        else
        {
            // Packet not sent, next packet build is disallowed until current packet is sent
            mDelayedPacketCount++;
        }
    }
    // Allow caller to see if packet actually went out
    return err_code;
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>