How to set TCPConnection timeout with Link-OS?

// Expert user has replied.
S Stacie Sulak 1 year 8 months ago
61 2 2

When using Objective-C Link-OS for iOS, I have no problem to decrease the connection timeout to 2 seconds for my ZQ620.

Using Java for Android, the timeout is defaulting to 15 seconds, which is much longer than we need. I tried to use the API with the timeout features like so:

                connection = new TcpConnection(printerIP, port, 1000, 500);

But when connection.open() is called, it still attempts for 15 seconds before I get a message saying connection failed.

How can I decrease the time?  Thanks.

Please Register or Login to post a reply

2 Replies

S Steven Si

In Link-OS SDK for iOS, we can set the max timeout for open with setMaxTimeoutForOpen. In the Link-OS SDK for Android, unfortunately the max timeout for open is set to 15000ms and the user cannot change the timeout value for open. We will raise the issue to the engineering team.

H Helmut Joost

We have the same problem on Link-OS SDK for C#. Is there any chance to get a quick fix? It is quite important for our use case!

CONTACT
Can’t find what you’re looking for?