<?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>battery service and thermometer service in advertisement packet</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17007/battery-service-and-thermometer-service-in-advertisement-packet</link><description>hello there i want to add battery service and thermometer service in advertisement packet. so i changed in uart project. but in advertisement project i can see battery service but can&amp;#39;t see thermometer service. can anyone help me??
i have uploaded my</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Oct 2016 11:54:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17007/battery-service-and-thermometer-service-in-advertisement-packet" /><item><title>RE: battery service and thermometer service in advertisement packet</title><link>https://devzone.nordicsemi.com/thread/65270?ContentTypeID=1</link><pubDate>Thu, 13 Oct 2016 11:54:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20a406bd-5fc0-43ca-b881-d7e77db6dd7b</guid><dc:creator>nordicbeginner</dc:creator><description>&lt;p&gt;thanks. its working&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: battery service and thermometer service in advertisement packet</title><link>https://devzone.nordicsemi.com/thread/65269?ContentTypeID=1</link><pubDate>Thu, 13 Oct 2016 11:07:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0b7e2cb-9379-4c0c-8188-ab60ab02ad04</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;There is something strange going on in ble_advertising.c.&lt;/p&gt;
&lt;p&gt;Could you try replacing:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;if (p_advdata-&amp;gt;p_service_data_array != NULL)
{
    m_service_data.data.p_data                   = m_service_data_array;
    m_advdata.p_service_data_array               = &amp;amp;m_service_data;
    m_advdata.p_service_data_array-&amp;gt;data.p_data  = m_service_data_array;
    m_advdata.p_service_data_array-&amp;gt;data.size    = p_advdata-&amp;gt;p_service_data_array-&amp;gt;data.size;
    m_advdata.p_service_data_array-&amp;gt;service_uuid = p_advdata-&amp;gt;p_service_data_array-&amp;gt;service_uuid;

    for (uint32_t i = 0; i &amp;lt; m_advdata.p_service_data_array-&amp;gt;data.size; i++)
    {
        m_service_data_array[i] = p_advdata-&amp;gt;p_service_data_array-&amp;gt;data.p_data[i];
    }

    m_advdata.service_data_count = p_advdata-&amp;gt;service_data_count;
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;with&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;if (p_advdata-&amp;gt;p_service_data_array != NULL)
{
    m_advdata.p_service_data_array = p_advdata-&amp;gt;p_service_data_array;
    m_advdata.service_data_count    = p_advdata-&amp;gt;service_data_count;

}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and see if that changes anything.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: battery service and thermometer service in advertisement packet</title><link>https://devzone.nordicsemi.com/thread/65268?ContentTypeID=1</link><pubDate>Thu, 13 Oct 2016 11:06:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57099a55-74e7-4762-92bb-c09eef806e9d</guid><dc:creator>nordicbeginner</dc:creator><description>&lt;p&gt;waiting for your response&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: battery service and thermometer service in advertisement packet</title><link>https://devzone.nordicsemi.com/thread/65267?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2016 15:25:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51a284bb-6f08-4afc-b247-03373df2f729</guid><dc:creator>nordicbeginner</dc:creator><description>&lt;p&gt;ok thanks for your support&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: battery service and thermometer service in advertisement packet</title><link>https://devzone.nordicsemi.com/thread/65266?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2016 15:05:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74ee1d63-adec-4492-8cdd-1de78836e65d</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Ok. I will look into why it isn&amp;#39;t working tomorrow.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: battery service and thermometer service in advertisement packet</title><link>https://devzone.nordicsemi.com/thread/65265?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2016 13:18:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:583afa83-48c7-4173-ae22-476bbc5fb8c7</guid><dc:creator>nordicbeginner</dc:creator><description>&lt;p&gt;i have uploaded picture.
i want advertisement packet in this order.
i want same data like advertisement event data&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: battery service and thermometer service in advertisement packet</title><link>https://devzone.nordicsemi.com/thread/65263?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2016 12:23:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0fb42a8-1377-4284-8466-17ca21cc3fa0</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Why do you need to assign any data to the services? Could you explain a bit more about your use case?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: battery service and thermometer service in advertisement packet</title><link>https://devzone.nordicsemi.com/thread/65264?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2016 12:03:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3ffe7b2-f570-41b7-bb87-9a7b97ba41d3</guid><dc:creator>nordicbeginner</dc:creator><description>&lt;p&gt;yes there is special reason. i have android application which i have made for cypress semiconductor.
service data has value 0x16. complete list of 16 bit class service uuid has value 0x03.
so my nordic&amp;#39;s advertisement packet will be different fro cypress&amp;#39;s advertisement packet.
so can you help me??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: battery service and thermometer service in advertisement packet</title><link>https://devzone.nordicsemi.com/thread/65262?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2016 10:46:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3dc57ddb-e854-4c76-b4d4-f5ad9188ba5c</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Is there a reason for using p_service_data_array instead of uuids_complete? Like we do in most of our examples? For example ble_app_hrs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>