<?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>BLE &amp;quot;User Data&amp;quot; Service</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18197/ble-user-data-service</link><description>Hi 
 I am evaluating this profile: 
 www.bluetooth.com/.../viewer 
 Is it availabile an implementation in nordic sdk of this profile?
Or something similar to have a reference... 
 Thanks in advance</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 Aug 2020 21:28:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18197/ble-user-data-service" /><item><title>RE: BLE "User Data" Service</title><link>https://devzone.nordicsemi.com/thread/264678?ContentTypeID=1</link><pubDate>Fri, 14 Aug 2020 21:28:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f894dd28-e39f-4099-89bd-ba34ba1f77ba</guid><dc:creator>vadim.barshaw</dc:creator><description>&lt;p&gt;I know, it&amp;#39;s been a while since the question was asked, but I&amp;#39;ve just happened to add user data service to my project.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static ble_gatts_char_handles_t fname_handles;
static ble_gatts_char_handles_t lname_handles;
uint16_t uds_handle;

static void add_userdata_service (void)
{
    ret_code_t      err_code;
    ble_uuid_t      ble_uuid;

    /* Add User Data Service */

    BLE_UUID_BLE_ASSIGN (ble_uuid, 0x181C);

    err_code = sd_ble_gatts_service_add (BLE_GATTS_SRVC_TYPE_PRIMARY,
                                         &amp;amp;ble_uuid,
                                         &amp;amp;uds_handle);
    APP_ERROR_CHECK (err_code);

    /* Add First Name characteristic */

    char * fname = &amp;quot;Vadim&amp;quot;;
    ble_add_char_params_t fname_char_params = {
        .uuid               = 0x2A8A,
        .max_len            = strlen (fname),
        .init_len           = strlen (fname),
        .p_init_value       = (uint8_t *) fname,
        .char_props.read    = 1u,
        .read_access        = SEC_OPEN
    };

    err_code = characteristic_add (uds_handle,
                                   &amp;amp;fname_char_params,
                                   &amp;amp;fname_handles);
    APP_ERROR_CHECK (err_code);

    /* Add Last Name characteristic */

    char * lname = &amp;quot;Barshaw&amp;quot;;
    ble_add_char_params_t lname_char_params = {
        .uuid               = 0x2A90,
        .max_len            = strlen (lname),
        .init_len           = strlen (lname),
        .p_init_value       = (uint8_t *) lname,
        .char_props.read    = 1u,
        .read_access        = SEC_OPEN
    };

    err_code = characteristic_add (uds_handle,
                                   &amp;amp;lname_char_params,
                                   &amp;amp;lname_handles);
    APP_ERROR_CHECK (err_code);
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Vadim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE "User Data" Service</title><link>https://devzone.nordicsemi.com/thread/70269?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2016 10:00:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce056783-da20-4a7c-8d39-9d4e5dd2cba2</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;We do not have an example that implements this service.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure if we have something similar, but I would recommend starting with for example &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.0.0/ble_sdk_app_hrs.html?cp=4_0_1_4_2_2_8"&gt;Heart Rate Application&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>