언어 설정

Menu
Sites
Language
Error when called SAScoket.sendData on Gear S2. IOError: Problem on I/O connection.

Hi,

I'm developing companion app for Gear S2 with Galaxy A5(Android).

I use Samsung Accessory Protocol and implements provider(A5) and consumer(S2).

It works well while sending data from A5 to S2.

However, it fail to send data from S2 to A5.

It always throw IOError when calling SAScoket.sendData on S2.

The code like this:

try { 

    saSocket.sendData(CHANNEL_ID, test_data);   // IOError: Problem on I/O connection.

} catch(err) {
      alert("sendData, Error: " + err);
}

Is there any suggestion?

Thanks.

Edited by: Ken on 31 1월, 2016

Responses

2 댓글
Marco Buettner

Which type has "test_data"... sendData except only Strings.

Ken

After make test_data be string,it works fine now!

Thank you,Marco.