<?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 change the peripheral type? Don&amp;#39;t need &amp;quot;Keyboard&amp;quot;</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19687/how-can-i-change-the-peripheral-type-don-t-need-keyboard</link><description>Hey guys,
I work with a partner who makes the hardware for me and uses the nordic chips. I want my device to pair over the android and iOS system settings. 
 image description 
 This works fine, but my hardware seller has set the peripheral to Keyboard</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 Feb 2017 13:39:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19687/how-can-i-change-the-peripheral-type-don-t-need-keyboard" /><item><title>RE: How can I change the peripheral type? Don't need "Keyboard"</title><link>https://devzone.nordicsemi.com/thread/76587?ContentTypeID=1</link><pubDate>Tue, 14 Feb 2017 13:39:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e30724a-c066-452d-8a28-9b0dfa855175</guid><dc:creator>RC</dc:creator><description>&lt;p&gt;But still thanks for your reply! I will post here when my partner changed the settings! :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I change the peripheral type? Don't need "Keyboard"</title><link>https://devzone.nordicsemi.com/thread/76586?ContentTypeID=1</link><pubDate>Tue, 14 Feb 2017 13:18:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e90ba6f-5f2f-4871-be9f-d94f390d7307</guid><dc:creator>Wojtek</dc:creator><description>&lt;p&gt;Of course it can be changed, quite easily.
I bet it is done by something like:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;sd_ble_gap_appearance_set(BLE_APPEARANCE_HID_KEYBOARD);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I would just change it to:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;sd_ble_gap_appearance_set(BLE_APPEARANCE_UNKNOWN);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;edit. Did not notice that Sigurd already answered :) so, just like he said.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I change the peripheral type? Don't need "Keyboard"</title><link>https://devzone.nordicsemi.com/thread/76585?ContentTypeID=1</link><pubDate>Tue, 14 Feb 2017 13:17:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e6be002-db79-4fc2-bae7-c787b1d7f590</guid><dc:creator>RC</dc:creator><description>&lt;p&gt;Thanks for your quick reply! I will send this to my partner and see if this will fix the problem! :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I change the peripheral type? Don't need "Keyboard"</title><link>https://devzone.nordicsemi.com/thread/76584?ContentTypeID=1</link><pubDate>Tue, 14 Feb 2017 13:00:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5734d427-2855-4e33-a30e-48727cbc3503</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The appearance value is typically set in the gap_params_init() function, using the SoftDevice function &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.api.v2.0.1/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html#gae5be2c237c81bb36ae370887b88da79f"&gt;sd_ble_gap_appearance_set&lt;/a&gt;(). In order for the peripheral to appear as a keyboard, the function is called with the argument &lt;code&gt;BLE_APPEARANCE_HID_KEYBOARD&lt;/code&gt;. &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.api.v2.0.1/group___b_l_e___a_p_p_e_a_r_a_n_c_e_s.html?cp=3_7_2_1_0_2_0_1_0_2"&gt;Here&lt;/a&gt; is the list of all appearance values. You can try to set the value to &lt;code&gt;BLE_APPEARANCE_UNKNOWN&lt;/code&gt;, and see if that solves your android issues. In the gap_params_init() function:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;err_code = sd_ble_gap_appearance_set(BLE_APPEARANCE_UNKNOWN);
APP_ERROR_CHECK(err_code);
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>