Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add modbus support BIG_ENDIAN_WORD_SWAP and LITTLE_ENDIAN_WORD_SWAP #1632

Merged
merged 1 commit into from
Jun 14, 2024

Conversation

StrawberryBlue
Copy link
Contributor

modbus support BIG_ENDIAN_WORD_SWAP
modbus support LITTLE_ENDIAN_WORD_SWAP

modbus support BIG_ENDIAN_WORD_SWAP
modbus support LITTLE_ENDIAN_WORD_SWAP
@sruehl sruehl requested a review from chrisdutz June 7, 2024 07:05
@ottlukas ottlukas added Modbus https://plc4x.apache.org/users/protocols/modbus.html driver-modbus java Pull requests that update Java code labels Jun 8, 2024
@chrisdutz
Copy link
Contributor

Adding the missing header after merging.

@chrisdutz chrisdutz merged commit a864274 into apache:develop Jun 14, 2024
3 of 12 checks passed
@chrisdutz
Copy link
Contributor

Ok ... so it turns out that this PR had huge side-effects on protocols such as ADS, as it didn't consider uint 32 or not full short values. I had to revert the changes ... I moved the ByteOrder Helper into the modbus protocol and created a new type: ModbusByteOrder. I don't think this Word-Swap functionality is needed anywhere else than Modbus, so I would like to keep the changes there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
java Pull requests that update Java code Modbus https://plc4x.apache.org/users/protocols/modbus.html
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants