<?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>How can I sent customize packet through llpm mode?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83863/how-can-i-sent-customize-packet-through-llpm-mode</link><description>Dear all, 
 I am now using two nrf52840DK and nrf connect sdk v1.7.1,and I want to send packet using llpm mode between two devices,one is receiver and the other is sender, 
 the following is how I want to do it. 
 In the &amp;quot; sample / bluetooth/ llpm &amp;quot;,</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 20 Jan 2022 14:25:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83863/how-can-i-sent-customize-packet-through-llpm-mode" /><item><title>RE: How can I sent customize packet through llpm mode?</title><link>https://devzone.nordicsemi.com/thread/348747?ContentTypeID=1</link><pubDate>Thu, 20 Jan 2022 14:25:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e77d7f1-4d42-4c4b-aa35-cc7c5a0348c8</guid><dc:creator>HaoHuang</dc:creator><description>&lt;p&gt;thanks a lot,I will try!!!!!!!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I sent customize packet through llpm mode?</title><link>https://devzone.nordicsemi.com/thread/348746?ContentTypeID=1</link><pubDate>Thu, 20 Jan 2022 14:21:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e8e151b-5a88-4921-8c37-6dbec01f6c08</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;You need to add a callback to&amp;nbsp;bt_latency_init(). Currently it&amp;#39;s&amp;nbsp;NULL when called&amp;nbsp;by&amp;nbsp;err = bt_latency_init(&amp;amp;latency, NULL);, however you should change this to:&lt;/p&gt;
&lt;p&gt;err = bt_latency_init(&amp;amp;latency, &amp;amp;data_callbacks);&lt;/p&gt;
&lt;p&gt;And add the following to main(void)&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; static const struct bt_latency_cb data_callbacks =&lt;br /&gt;&amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .latency_request = latency_request,&lt;br /&gt;&amp;nbsp; &amp;nbsp; };&lt;/p&gt;
&lt;p&gt;And add the following to main.c&lt;/p&gt;
&lt;p&gt;void latency_request(const void *buf, uint16_t len)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; &amp;nbsp; // here you can handle your data&lt;br /&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>