PHP Serial Libraries for UDOO NEO

This file describes how to run the PHP examples contained in this folder.

To run these PHP examples, we will use the PHP interpreter and its embedded Web Server. The same examples can be executed over Apache or nginx too.

1 - Flash the Arduinoâ„¢ Sketch using the Arduino IDE

2 - Create the needed serial link with these commands:

sudo ln -s /dev/ttyMCC /dev/ttyS0

3 - Navigate in this folder:

cd serial_libraries_examples/php/

4 - Start the embedded web server:

php -S

5 - Open a browser (on your UDOO or on your computer) and run the examples writing in the address bar:

For the basic serial example:

For the bidirectional serial example:

Please note, use if you open the browser directly on the UDOO; otherwise use if you are using the USB Direct connection on UDOO NEO. If you want to connect from external WiFi/Ethernet IP address are supported too.

This page was last updated on Saturday, March 11, 2017 at 7:11 PM.