patrickboisclair commented on issue #1156: URL: https://github.com/apache/plc4x/issues/1156#issuecomment-1934916338
[pc4x_11_WireShark.zip](https://github.com/apache/plc4x/files/14214543/pc4x_11_WireShark.zip) Hi Chris, Attached is the WireShark results of my test. I ran the test twice, Here is the Java code: ` final DefaultPlcDriverManager driver = new DefaultPlcDriverManager(); final PlcConnection plcConnection = driver.getConnection("ads:tcp://10.10.11.77?sourceAmsNetId=172.29.48.1.1.1&sourceAmsPort=34&targetAmsNetId=5.62.206.200.1.1&targetAmsPort=851"); final Integer expectedValue = 1; // Write value to plc PlcWriteRequest.Builder writeBuilder = plcConnection.writeRequestBuilder(); writeBuilder.addTagAddress("ValueDINT", "MAIN.ValeurDINT", new PlcDINT(expectedValue)); // With PLC4X 0.11.0, we need to pass a PlcXXX object, otherwise null is used ? PlcWriteRequest writeRequest = writeBuilder.build(); writeRequest.execute().get(); // Read the written value PlcReadRequest.Builder reaBuilder = plcConnection.readRequestBuilder(); reaBuilder.addTagAddress("ValueDINT", "MAIN.ValeurDINT"); PlcReadRequest readRequest = reaBuilder.build(); PlcReadResponse response = readRequest.execute().get(); Integer result = response.getInteger("ValueDINT"); System.out.println("Read value: " + result.toString()); ` As you can see, I write 1 and read it back, and of course I expect 1 as the result, but I get : Read value: 16777216 If you need anything else, pls let me know. Best regards ! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
