<?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>multilink send data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19574/multilink-send-data</link><description>Hi,
I used the ble_peripheral and ble_central example and I send messages from one to the other. 
 Know I need to do the same with multilink.
I managed to connect ble_multilink_central with a ble_uart but I can&amp;#39;t see the messages I send. 
 should</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 Feb 2017 12:31:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19574/multilink-send-data" /><item><title>RE: multilink send data</title><link>https://devzone.nordicsemi.com/thread/76145?ContentTypeID=1</link><pubDate>Thu, 09 Feb 2017 12:31:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f036711b-0e4f-40fd-a465-ae649938bf8a</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Why have you added this as an answer? Just edit your question and add it there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multilink send data</title><link>https://devzone.nordicsemi.com/thread/76144?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2017 21:32:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ee75aef-a7c2-4e15-a394-8872894e9a45</guid><dc:creator>Arthur</dc:creator><description>&lt;p&gt;to be more precise :
I send data with this :&lt;/p&gt;
&lt;blockquote&gt;
&lt;/blockquote&gt;
&lt;pre&gt;&lt;code&gt;le_gatts_hvx_params_t params;
static uint8_t test[2] = {0x24, 0x33};
static uint16_t testLen = 2;
memset(&amp;amp;params, 0, sizeof(params));
params.type = BLE_GATT_HVX_NOTIFICATION;
params.handle = m_lbs.button_char_handles.value_handle;
params.offset = 0;
//params.p_data = test;
params.p_data = (uint8_t*)(&amp;amp;test[0]);
params.p_len = &amp;amp;testLen;
sd_ble_gatts_hvx(m_lbs.conn_handle, &amp;amp;params);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and I try to receive data with this :&lt;/p&gt;
&lt;blockquote&gt;
&lt;/blockquote&gt;
&lt;pre&gt;&lt;code&gt;    static void lbs_c_evt_handler(ble_lbs_c_t * p_lbs_c, ble_lbs_c_evt_t * p_lbs_c_evt)
 {
    const uint16_t conn_handle = p_lbs_c_evt-&amp;gt;conn_handle;
    switch (p_lbs_c_evt-&amp;gt;evt_type)
    {
    case BLE_LBS_C_EVT_DISCOVERY_COMPLETE:
    {
        ret_code_t err_code;

        NRF_LOG_PRINTF(&amp;quot;[APP]: LED Button service discovered on conn_handle 0x%x\r\n&amp;quot;, 
                        conn_handle);
        
        err_code = app_button_enable();
        APP_ERROR_CHECK(err_code);

        // LED Button service discovered. Enable notification of Button.
        err_code = ble_lbs_c_button_notif_enable(p_lbs_c);
        APP_ERROR_CHECK(err_code);
    } break; // BLE_LBS_C_EVT_DISCOVERY_COMPLETE

    case BLE_LBS_C_EVT_BUTTON_NOTIFICATION:
    {
        NRF_LOG_PRINTF(&amp;quot;[APP]: Link 0x%x, Button state changed on peer to 0x%x\r\n&amp;quot;,//   0x%x
                       conn_handle,
                       p_lbs_c_evt-&amp;gt;params.button.button_state);//,
					   //&amp;amp;(p_lbs_c_evt-&amp;gt;params.button).button_state+1);
        if (p_lbs_c_evt-&amp;gt;params.button.button_state)
        {
            LEDS_ON(LEDBUTTON_LED);
        }
        else
        {
            LEDS_OFF(LEDBUTTON_LED);
        }
    } break; // BLE_LBS_C_EVT_BUTTON_NOTIFICATION

    default:
        // No implementation needed.
        break;
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;I managed to send one byte, but when I change it to an array I get a very strange behaviour, and it print the data I sent last time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>