PhpType
The class includes set of methods that convert the received Modbus data (array of bytes) to the PHP data type, i.e. signed int, unsigned int and float.
Located in /Phpmodbus/PhpType.php (line 28)
bytes2float
The function converts array of 4 bytes to float. The return value depends on order of the input bytes (endianning).
bytes2signedInt
The function converts array of 2 or 4 bytes to signed integer. The return value depends on order of the input bytes (endianning).
bytes2string
The function converts an values array to the string. The function detects the end of the string by 0x00 character as defined by string standards.
bytes2unsignedInt
The function converts array of 2 or 4 bytes to unsigned integer. The return value depends on order of the input bytes (endianning).
Documentation generated on Tue, 09 Jul 2013 23:46:23 +0200 by phpDocumentor 1.4.1