Go Down

Topic: Problems with PHP,MySQL and Ethernet (Read 500 times) previous topic - next topic

luigialab

#15
Jan 22, 2015, 03:56 pm Last Edit: Jan 22, 2015, 04:03 pm by luigialab
Yes it still works. i addes your line of code and that's the result:
Code: [Select]
Starting ethernet...
192.168.0.254
Ready
/arduino/indice.php?valore=0
connecting...connected
HTTP/1.1 200 OK
Date: Thu, 22 Jan 2015 14:54:49 GMT
Server: Apache/2.4.7 (Ubuntu)
X-Powered-By: PHP/5.5.9-1ubuntu4.5
Content-Length: 1
Connection: close
Content-Type: text/html
It works!
PHPVAR = 0
disconnecting.
Pass 1


EDIT: I found my mistake!
It was in this line :
Code: [Select]

pinMode(temp,INPUT);

because i'm using a LM35 sensor and now it works!! Really thanks you man!! Last thing where can i find some documentation about the GET sketch? beacuse i think i'll use this project in an exam at school. Thanks!

SurferTim

There is sketchy documentation about any ethernet functions. You can take a look at my GET example sketch on the playground. I have included all error checking and fault tolerance stuff I could find, and commented it as well as I thought necessary. The timeout feature is the major improvement over other example sketches. Look for the loopCount variable and how it controls the timeout on the "while(client.connected))" loop.
http://playground.arduino.cc/Code/WebClient
Watch for me on National Geographic Wild "When Sharks Attack: Gulf Coast Killers". Airs on June 22nd.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy