Skip to content

java.io.IOException: Connection reset by peer  #1

Description

@siddhpuraamitr

I m using windows 7 64 bit ACER LAPTOP and LG P500 android phone

when i m connecting. i am getting output bye JAVA is

BlueCove version 2.1.1-SNAPSHOT on winsock
BT_Dummy :: Starting device discovery...
BT_Dummy :: Found device: BT_LG-P500
BT_Dummy :: Inquiry Completed.
BT_Dummy :: Starting Service Discovery...
BT_Dummy :: Service search completed.
BT_Dummy :: Sending command to btspp://B089911F16CC:28;authenticate=false;encrypt=false;master=false
BT_Dummy :: Sending Hello world!
BT_Dummy :: Sent. Connection Closed.

but during sending code "Hello World" i am getting eroor in andorid phone like

java.io.IOException: Connection reset by peer

String buffer;
DataInputStream in = new DataInputStream(socket.getInputStream());
buffer = in.readUTF(); <----------------------------------------------- Error getting
Intent i = new Intent(MESSAGE_RECEIVED_INTENT);

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