Ejemplo n.º 1
0
 public static async Task<Protocol> CreateProtocolAsync(Windows.Devices.Bluetooth.Rfcomm.RfcommDeviceService peer)
 {
     StreamSocket socket = new StreamSocket();
     await socket.ConnectAsync(peer.ConnectionHostName, new Guid(0x00001101, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB).ToString("B"), SocketProtectionLevel.PlainSocket);
     return new Protocol(socket);
 }
Ejemplo n.º 2
0
 private RfcommDeviceService(Windows.Devices.Bluetooth.Rfcomm.RfcommDeviceService service)
 {
     _service = service;
 }