1

我使用 32feet 连接到带有蓝牙的安卓手机。手机和电脑都有一个蓝牙 (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

我不知道出了什么问题。任何帮助表示赞赏。

4

0 回答 0