writeSingleCoil($unitId, $reference, [$value]); } catch (Exception $e) { // Print error information if any echo $modbus; echo $e; exit; } echo '

Status

';
print_r($modbus);
echo '
'; echo '

Data

';
print_r($recData);
echo '
';