<?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>L2CAP Examples</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/2024/l2cap-examples</link><description>Hello, 
 Is there anyone who has any example code for using L2CAP transfers instead of services? Something where the use of sd_ble_l2cap_tx() and the rx callback are used? 
 Alternatively, is there a way to send large data structures using the BLE?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 31 Mar 2014 10:02:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/2024/l2cap-examples" /><item><title>RE: L2CAP Examples</title><link>https://devzone.nordicsemi.com/thread/8693?ContentTypeID=1</link><pubDate>Mon, 31 Mar 2014 10:02:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:851831c4-f96e-46c0-9d4c-23d103ad548b</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;There isn&amp;#39;t really much magic to using the L2CAP API, but remember that you&amp;#39;re still limited to the max MTU size of 23. In addition, most Central side APIs (except the S120) doesn&amp;#39;t expose any L2CAP APIs, and hence it isn&amp;#39;t really usable for most applications.&lt;/p&gt;
&lt;p&gt;To transfer large data, I&amp;#39;d therefore recommend taking a look at &lt;a href="https://devzone.nordicsemi.com/index.php/dealing-large-data-packet-s-through-ble"&gt;this question&lt;/a&gt;, which explains our recommended approach. You may also have use in taking a look at &lt;a href="https://github.com/NordicSemiconductor/nrf51-ble-app-lbs/tree/throughput-test-5.2.0"&gt;this example application&lt;/a&gt;, as well as &lt;a href="https://devzone.nordicsemi.com/index.php/how-do-i-calculate-throughput-for-a-ble-link"&gt;this question that covers throughput calculation&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>