I am reading values over a (modbusTCP) connection. I get back an array with the following data:
print_r($recData) ;
Output: Array ( [0] => 67 [1] => 100 [2] => 33 [3] => 72 )
how do I get the values back as float? as result I should get the following: 229.718
my code dosent work... the data in $recData shout be a Float Big Endian Value
$i = ($recData[0]<<24) + ($recData[1]<<16) + ($recData[2]<<8) + ($recData[3]);