蓝牙连接失败了android

时间:2014-04-01 12:46:25

标签: android bluetooth

尝试连接时,我收到蓝牙连接失败错误。

    Logs

    BluetoothSocket.cpp(8398): initSocketNative
    BluetoothSocket.cpp(8398): ...fd 53 created (RFCOMM, lm = 0)
    BluetoothSocket.cpp(8398): initSocketFromFdNative
    BluetoothSocket.cpp(8398): connectNative
    BluetoothSocket.cpp(8398): ...connect(53, RFCOMM) = -1 (errno 16)
    BluetoothSocket.cpp(8398): abortNative
    BluetoothSocket.cpp(8398): ...asocket_abort(53) complete
    BluetoothSocket.cpp(8398): destroyNative
    BluetoothSocket.cpp(8398): ...asocket_destroy(53) complete

让我知道我在哪里做错了。

我的代码段:

    mmSocket = device.createInsecureRfcommSocketToServiceRecord(MY_UUID);
    mmSocket.connect();

0 个答案:

没有答案