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.