Another place is 
https://github.com/apache/plc4x/blob/develop/plc4j/drivers/canopen/src/main/java/org/apache/plc4x/java/canopen/api/conversation/canopen/SDODownloadConversation.java#L44


发件人: 杨 林<mailto:[email protected]>
发送时间: 2022年2月7日 11:51
收件人: [email protected]<mailto:[email protected]>
主题: Canopen is breakdown


Hi chris,

The last commit about canopen(refactor(code-generation): Finished migrating the 
code to using the s… ・ apache/plc4x@447ef68 
(github.com)<https://github.com/apache/plc4x/commit/447ef680f274d779b0777eb7c2538b7dc5159300>)
 makes canopen breakdown.

The code 
at(https://github.com/apache/plc4x/commit/447ef680f274d779b0777eb7c2538b7dc5159300#diff-a3c3615ad620b98434954f5fda93502e1590eb265ed657fab0f42e5ee436b50dR223):
WriteBufferByteBased writeBuffer = new 
WriteBufferByteBased(DataItem.getLengthInBytes(writeValue, 
field.getCanOpenDataType(), writeValue.getLength()));
DataItem.staticSerialize(writeBuffer, writeValue, field.getCanOpenDataType(), 
writeValue.getLength(), ByteOrder.LITTLE_ENDIAN);

should be:
WriteBufferByteBased writeBuffer = new 
WriteBufferByteBased(DataItem.getLengthInBytes(writeValue, 
field.getCanOpenDataType(), writeValue.getLength()), ByteOrder.LITTLE_ENDIAN);


The generated code DataItem.staticSerialize does not use the byteOrder 
parameter.

Yang Lin

Reply via email to