I\'m trying to connect to a BlueTooth device
I have paired it and when I search for it I find it :
private async void Grid_DoubleTapped(object send
So you want to know what you have to write in the manifest file, as well as how to connect?
Manifest file:
<m2:DeviceCapability Name="bluetooth.rfcomm">
<m2:Device Id="any">
<m2:Function Type="serviceId:00001101-0000-1000-8000-00805F9B34FB"/>
</m2:Device>
</m2:DeviceCapability>
"any"
."name:serialPort"
or the serviceId specified in the example.Connecting:
StreamSocket _socket;
RfcommDeviceService service = await RfcommDeviceService.FromIdAsync(device.id);
await _socket.ConnectAsync(service.ConnectionHostName, service.ConnectionServiceName);
Should be able to do the trick.