<?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>Send large data (&amp;gt;20bytes) over BLE using Zephyr and NRF Connect SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76165/send-large-data-20bytes-over-ble-using-zephyr-and-nrf-connect-sdk</link><description>Hello everyone! 
 I want to develop and app the sends some sensors data over BLE. 
 I am trying the peripheral_uart sample of the NRF Connect SDK but it seems that I cant sent a packet larger than 20 bytes. 
 Specifically, I want to send an array of uint32_t</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 Jun 2021 11:38:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76165/send-large-data-20bytes-over-ble-using-zephyr-and-nrf-connect-sdk" /><item><title>RE: Send large data (&gt;20bytes) over BLE using Zephyr and NRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/314442?ContentTypeID=1</link><pubDate>Wed, 09 Jun 2021 11:38:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ec7f5a0-d784-4521-adc9-6529e13806e5</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I suggest to check out:&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/throughput/README.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/throughput/README.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There are kconfig options in prj.conf you should set. Searching for the various kconfig options you find there should give some results here in devzone already.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send large data (&gt;20bytes) over BLE using Zephyr and NRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/314303?ContentTypeID=1</link><pubDate>Tue, 08 Jun 2021 23:23:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9f1cf2a-5c90-4636-afe8-cb03da7eb393</guid><dc:creator>nik_mitros</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;void ble_write_thread(void)
{
	/* Don&amp;#39;t go any further until BLE is initialized */
	k_sem_take(&amp;amp;ble_init_ok, K_FOREVER);
        uint8_t arr[128];
        for(int i=0; i&amp;lt;128;i++) {
          arr[i]=i;
          }
        uint16_t len = 128;

	for (;;) {
		/* Wait indefinitely for data to be sent over bluetooth */
		//struct uart_data_t *buf = k_fifo_get(&amp;amp;fifo_uart_rx_data,
			//			     K_FOREVER);

		if (bt_nus_send(NULL, arr, len)) {
			LOG_WRN(&amp;quot;Failed to send data over BLE connection&amp;quot;);
		}

               /// int error = bt_gatt_write_without_response(NULL,char_handle,arr,len, false);
		//k_free(buf);
	}
}

K_THREAD_DEFINE(ble_write_thread_id, STACKSIZE, ble_write_thread, NULL, NULL,
		NULL, PRIORITY, 0, 0);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>