Calling a PHP Script

testerrrs

New Member
Hi all,

I have a PICAXE connected to a weather station system, and it grabs data into variables.

Now I've written a PHP script that is called as follows:
add.php?light=XXX&moisture=XX&temp=XXX&password=XYZ
etc, and it adds the data to a MySQL database.

I know the PICAXE can compile the string and insert the relevant variable values in the right places, but what's the easiest way of connecting it to a network so it can actually call the script over the internet?

The script can return '0' for fail and '1' for success; is there any way of the PICAXE picking this value up to know whether it's attempt was successful?

Jon
 

steliosm

Senior Member
The easiest way to go is using a Lantronix Xport.
You could also try using a wireless router like linksys or fonera (see info here: http://steliosm.net/home_monitor.html) and hookup your PicAxe on them. Then make a small script on the modified router to receive data from the serial port and send it to your web server. The advantages are that you can have a wired or wireless connection to your network.
 
Top