示例#1
0
 public async Task GetService()
 {
     if (adapter.ConnectedDevices.Count > 0)
     {
         if (SelectedDevice == null)
         {
             SelectedDevice = adapter.ConnectedDevices[0];
         }
         Service = await SelectedDevice.GetServiceAsync(new Guid(6166, 0, 4096, 128, 0, 0, 128, 95, 155, 52, 251));
     }
 }