问题
I'm developing a Xamarin application using Visual Studio 2019. I have to connect to another device through Bluetooth and send some data and receive acknowledgment back. Tried this samples out
But didn't help me while connecting for nearby Bluetooth devices, since the below codes are not giving expected results.
bluetoothTxSocket = bluetoothDevice.CreateRfcommSocketToServiceRecord(UUID.FromString("00001101-0000-1000-8000-00805f9b34fb"));
bluetoothTxSocket.Connect();
Getting below exception after executing the last line Java.IO.IOException
Message=read failed, socket might closed or timeout, read ret: -1. Can anyone help me out?
Does above code supports only to connect Classic Bluetooth Devices? What I have to do, if I need to connect to BLE devices..
来源:https://stackoverflow.com/questions/62371859/how-to-connect-to-another-device-through-bluetooth-and-send-some-data-and-receiv