aldas / modbus-tcp-client

PHP client for Modbus TCP and Modbus RTU over TCP (can be used for serial)
Apache License 2.0
191 stars 55 forks source link

Endian fixes #145

Closed aldas closed 1 year ago

aldas commented 1 year ago

when Endian::$defaultEndian = Endian::LITTLE_ENDIAN; is done before request is created/parsed the result will be wrong as packets are always BIG_ENDIAN but changing global endian makes different things to be parsed incorrectly