-
Notifications
You must be signed in to change notification settings - Fork 53
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
Exception with "Endian::LITTLE_ENDIAN_LOW_WORD_FIRST" #89
Comments
Endian is actually bitmask that consist of byte order (LE or BE) and word order (low word first or "high word first") See this: modbus-tcp-client/src/Utils/Endian.php Line 44 in 1fb85de
If you want to set LE+LWF use:
|
Usage wasn't clear for me in the help; i assumed that it wold work as for BIG_ENDIAN. But with your hint: Works now as expetced! :) Thank you. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Martti,
Endian::$defaultEndian = Endian::LITTLE_ENDIAN_LOW_WORD_FIRST;
I get an exception "Undefined class constant 'LITTLE_ENDIAN_LOW_WORD_FIRST'" Do I have a typo or a missunderstanding about the 4th possible endian option? The other 3 work as expected.
The text was updated successfully, but these errors were encountered: