Ok. Is something else opening the serial port? For example, you can't run minicom while you're trying to get PHP to communicate with the Arduino.
Another suggestion I have found is to print out the state of the serial port variable to see if the port was opened successfully with var_dump($serial);
Probably put it before in your PHP code, then look in the logs for the result.
Another suggestion I have found is to print out the state of the serial port variable to see if the port was opened successfully with var_dump($serial);
Probably put it before
Code:
$serial->confBaudRate(57600);
Statistics: Posted by ame — Mon Oct 21, 2024 12:00 am