Skip to content

Device is found but it will not connect #1

@wasouthpnt

Description

@wasouthpnt

HC-05 is found but the connect thread will not connect.

try {
// Connect to the remote device through the socket. This call blocks
// until it succeeds or throws an exception.
mmSocket.connect(); //Here is the failure point
} catch (IOException connectException) {
// Unable to connect; close the socket and return.
handler.obtainMessage(ERROR_READ, "Unable to connect to the BT device").sendToTarget();
Log.e(TAG, "connectException: " + connectException);
try {
mmSocket.close();
} catch (IOException closeException) {
Log.e(TAG, "Could not close the client socket", closeException);
}
return;
}

PLEASE HELP ME WITH THIS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions