Quantcast
Viewing all articles
Browse latest Browse all 5067

Beginners • Re: Old coding on new hardware

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

Code:

$serial->confBaudRate(57600);
in your PHP code, then look in the logs for the result.

Statistics: Posted by ame — Mon Oct 21, 2024 12:00 am



Viewing all articles
Browse latest Browse all 5067

Trending Articles