<?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 device services are not detected on iOS nRF Connect app</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42294/ble-device-services-are-not-detected-on-ios-nrf-connect-app</link><description>When I use the nRF connect app on android phones, the services and characteristics can be detected and controlled correctly, as below. 
 
 
 But when I switch to iOS nRF Connect app, the app can scan and connect the device, but there is not any services</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Jan 2019 08:16:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42294/ble-device-services-are-not-detected-on-ios-nrf-connect-app" /><item><title>RE: BLE device services are not detected on iOS nRF Connect app</title><link>https://devzone.nordicsemi.com/thread/164825?ContentTypeID=1</link><pubDate>Thu, 10 Jan 2019 08:16:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a39fab55-c1c3-4de4-a62b-7d840a0edd1e</guid><dc:creator>glowinac</dc:creator><description>&lt;p&gt;I just found the solution from &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/20751/ios-compatibillity-with-sdk13/80992#80992"&gt;here &lt;/a&gt;and &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/29784/s332-ble-connect-ios-device/118148#118148"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Seems like that the the iOS device negotiates with the MTU size when establishing the connection, and the GATT module&amp;nbsp;is different since I migrated the code from S132 to S332 softdevice. In older version softdevices, the &amp;quot;BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST&amp;quot; event is handled in nrf_ble_gatt.c. But In the newer version(in my case it&amp;#39;s s332 5.0.0) it uses different way.&lt;/p&gt;
&lt;p&gt;So I added&amp;nbsp;&lt;span&gt;#include &amp;quot;nrf_ble_gatt.h&amp;quot; in main.c and deal with the&amp;nbsp;BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST event manually in&amp;nbsp;ble_evt_handler, and the connection works fine now.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;case BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST:
    	err_code=sd_ble_gatts_exchange_mtu_reply(p_ble_evt-&amp;gt;evt.gatts_evt.conn_handle, 23);
    	APP_ERROR_CHECK(err_code);
	break;&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>