<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to discover bluetooth services? in ArcGIS AppStudio Questions</title>
    <link>https://community.esri.com/t5/arcgis-appstudio-questions/how-to-discover-bluetooth-services/m-p/847855#M2700</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone help with understanding how to discover bluetooth services?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following online docs, we create a 'BluetoothDiscoveryModel' and hook it up to a Listview to see what it finds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we set the 'discoveryMode' property to 'BluetoothDiscoveryModel.DeviceDiscovery' then we can see results appear for devices. But, in order to connect, we want to get the services.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, we change the mode to either '&lt;SPAN style="color: #404244; background-color: #f9f9f9;"&gt;BluetoothDiscoveryModel.FullServiceDiscovery' or 'BluetoothDiscoveryModel.MinimalServiceDiscovery', but in both cases we get absolutely no results.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #404244; background-color: #f9f9f9;"&gt;We are aware it won't (according to docs we've read!) that it won't work on Windows. Running from a Mac, we do notice this error popping up in the console log (regardless which mode we set the discovery to):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #404244; background-color: #f9f9f9;"&gt;Exception NSInvalidArgumentException thrown while decoding IOBluetoothSDPServiceRecord&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #404244; background-color: #f9f9f9;"&gt;We're not sure if this indicates some problem or not?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #404244; background-color: #f9f9f9;"&gt;Attached is the code we are using - is extremely basic and is essentially just following a sample from the Qt online docs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #404244; background-color: #f9f9f9;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #404244; background-color: #f9f9f9;"&gt;Any help or suggestions welcome! Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #404244; background-color: #f9f9f9;"&gt;-Paul&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Jan 2018 01:39:32 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2018-01-26T01:39:32Z</dc:date>
    <item>
      <title>How to discover bluetooth services?</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/how-to-discover-bluetooth-services/m-p/847855#M2700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone help with understanding how to discover bluetooth services?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following online docs, we create a 'BluetoothDiscoveryModel' and hook it up to a Listview to see what it finds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we set the 'discoveryMode' property to 'BluetoothDiscoveryModel.DeviceDiscovery' then we can see results appear for devices. But, in order to connect, we want to get the services.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, we change the mode to either '&lt;SPAN style="color: #404244; background-color: #f9f9f9;"&gt;BluetoothDiscoveryModel.FullServiceDiscovery' or 'BluetoothDiscoveryModel.MinimalServiceDiscovery', but in both cases we get absolutely no results.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #404244; background-color: #f9f9f9;"&gt;We are aware it won't (according to docs we've read!) that it won't work on Windows. Running from a Mac, we do notice this error popping up in the console log (regardless which mode we set the discovery to):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #404244; background-color: #f9f9f9;"&gt;Exception NSInvalidArgumentException thrown while decoding IOBluetoothSDPServiceRecord&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #404244; background-color: #f9f9f9;"&gt;We're not sure if this indicates some problem or not?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #404244; background-color: #f9f9f9;"&gt;Attached is the code we are using - is extremely basic and is essentially just following a sample from the Qt online docs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #404244; background-color: #f9f9f9;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #404244; background-color: #f9f9f9;"&gt;Any help or suggestions welcome! Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #404244; background-color: #f9f9f9;"&gt;-Paul&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2018 01:39:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/how-to-discover-bluetooth-services/m-p/847855#M2700</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-01-26T01:39:32Z</dc:date>
    </item>
  </channel>
</rss>

