Skip to content

Seeking assistance regarding the development of the Omron Fins protocol #1988

Answered by chrisdutz
rooterWzs asked this question in Q&A
Discussion options

You must be logged in to vote

Ok .. I've fixed that glitch in the Plc4xNettyHandler ... however now you would simply not get any error message. I would strongly reccomend you add an onTimeout and onError to your chain to make debugging issues easier.

RequestTransactionManager.RequestTransaction transaction = tm.startRequest();
            transaction.submit(() -> conversationContext.sendRequest(tpktPacket)
                .onTimeout(new TransactionErrorCallback<>(future, transaction))
                .onError(new TransactionErrorCallback<>(future, transaction))
                .expectResponse(TPKTPacket.class, REQUEST_TIMEOUT)
                .unwrap(TPKTPacket::getPayload)
                .only(COTPPacketData.class)
…

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
4 replies
@rooterWzs
Comment options

@chrisdutz
Comment options

@chrisdutz
Comment options

@rooterWzs
Comment options

Comment options

You must be logged in to vote
4 replies
@chrisdutz
Comment options

Answer selected by ottlukas
@rooterWzs
Comment options

@rooterWzs
Comment options

@chrisdutz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
java Pull requests that update Java code
2 participants