Exemplo n.º 1
0
        IAsyncResult IBluetoothDeviceInfo.BeginGetServiceRecords(Guid service, AsyncCallback callback, object state)
        {
            if (_sdpQuery == null)
            {
                _sdpQuery = new BluezSdpQuery(_fcty);
            }
            var ar = _sdpQuery.BeginQuery(_addr, service, false, callback, state);

            return(ar);
        }
Exemplo n.º 2
0
 //--
 IAsyncResult IUsesBluetoothConnectorImplementsServiceLookup.BeginServiceDiscovery(
     BluetoothAddress address, Guid serviceGuid,
     AsyncCallback asyncCallback, Object state)
 {
     if (_sdpQuery == null)
     {
         _sdpQuery = new BluezSdpQuery(_fcty);
     }
     return(_sdpQuery.BeginQuery(address, serviceGuid, true, asyncCallback, state));
 }
Exemplo n.º 3
0
        List <ServiceRecord> DoGetServiceRecords(Guid service)
        {
            if (_sdpQuery == null)
            {
                _sdpQuery = new BluezSdpQuery(_fcty);
            }
            var list = _sdpQuery.DoSdpQueryWithConnect(_addr, service, false);

            return(list);
        }