我使用32feet连接到带蓝牙的Android手机。手机和电脑都有蓝牙(bt)客户端和运行的服务器。如果我只发送一个发送或接收,一切正常,但如果我同时发送两个方面,在电脑上我得到一个例外。
换句话说,这是我需要同时发生异常的事情。
BT Client PC * -------> BT Server Android (pc client gets exception)
BT Server PC <------- BT Client Android (everything is fine every time (message is received))
(*) Exception, android doesn't see the connection attempt
这是一个例外:
System.Net.Sockets.SocketException (0x80004005): An invalid argument was supplie
d 083D88459AE0:1c556c4d4d9a422691cfff53d3634cd3
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddre
ss socketAddress)
at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
at InTheHand.Net.Bluetooth.Msft.SocketBluetoothClient.Connect(BluetoothEndPoi
nt remoteEP)
at InTheHand.Net.Sockets.BluetoothClient.Connect(BluetoothEndPoint remoteEP)
at BluetoothClientTest.Program.Main(String[] args) in C:\gyozo\testprojects\B
luetoothClient\BluetoothClient\Program.cs:line 37
我不知道出了什么问题。任何帮助表示赞赏。