示例#1
0
        /// <summary>
        /// By discovering pipes, the pipe setup we have specified will be matched up
        /// to the remote device's ATT table by ATT service discovery.
        /// </summary>
        void DiscoverPipes()
        {
            bool success = masterEmulator.DiscoverPipes();

            if (!success)
            {
                AddToLog("DiscoverPipes did not succeed.");
            }
        }
示例#2
0
文件: Main.cs 项目: weiyd/BLE-ECG
 private void DiscoverPipes()
 {
     try
     {
         masterEmulator.DiscoverPipes();
         masterEmulator.OpenAllRemotePipes();
         pipeDiscoveryComplete = true;
     }
     catch (Exception ex)
     {
         DisplayErrorMessage(ex);
     }
 }