Hi Everyone,
I was looking on how to send data from Arduino to my LOCALHOST and read the data with PHP , and found out that I can do that with Ethernet Shield .
Unfortunately, I dont have the Ethernet Shield Board now , is there a way to do that by only using Arduino Uno without the Ethernet Shield ?
Thanks alot
The serial port works well.
Can you please give me a small example on how to send data to port using arduino ?
because i already do that in the PHP side and i read it in arduino , thanks alot
I use Serial.print(), but Serial.write() is more useful for arbitrary data.
Ok but lets say in arduino i did : Serial.write("I love the world");
i go to the PHP side and i do this code :
$port = fopen("COM4", "r+");
echo fread($port,"20");
But it does not work unfortunately :S
You should probably read the documentation on Serial.write and Serial.print, and take a moment to describe your equipment, how the computers are connected, and post ALL the Arduino code, using code tags.
Helpful hints are in the "How to use this forum" post.