zoomkat:
If you are trying to operate a web server within a cell phone system, than that may not work.
zoomkat my gsm have a static ip ethernet.I hope this feasible. Because we already connected ethernet with web client.
but all web servers have static ip and php, so ethernet shield have a web server
why sim900 gprs not have web server?
void web client() // using sim900 no problem
{
Serial1.println("AT+SAPBR=3,1,\"CONTYPE\",\"GPRS\"");
delay(500);
Serial1.println("AT+SAPBR=3,1,\"APN\",\"CMNET\"");
delay(500);
Serial1.println("AT+SAPBR=1,1");
delay(500);
Serial1.println("AT+SAPBR=2,1");
delay(3000);
Serial1.println("AT+HTTPINIT");
delay(500);
Serial1.println("AT+HTTPPARA=\"CID\",1");
delay(500);
Serial1.print("AT+HTTPPARA=\"URL\",\"http://ip adress/add_data.php?");
Serial1.print("id=");
Serial1.print(latitude,5);
Serial1.print("&2id=");
Serial1.print(longitude,5);
Serial1.println("\"");
delay(3000);
Serial1.println("AT+HTTPACTION=0");
delay(15000);
Serial1.println("AT+HTTPTERM");
delay(500);
Serial1.println("AT+SAPBR=0,1");
delay(500);
Serial.println("go linked");
}
void web server() //using sim900 gprs this problem
{
and idea here? at commands html code.??
SIM900.println("AT+HTTPPARA=\"URL\",\"sim900test.net46.net/getstate.php?color=All\"");// setting the httppara, the second parameter is the website you want to access
delay(1000);
ShowSerialData();
SIM900.println("AT+HTTPACTION=0");//submit the request
delay(10000);//the delay is very important, the delay time is base on the return from the website, if the return datas are very large, the time required longer.
//while(!SIM900.available());
ShowSerialData();
SIM900.println("AT+HTTPREAD");// read the data from the website you access
delay(300);
}
A simple web server that shows the value of the analog input pins.
using an Arduino Wiznet Ethernet shield.
but sim900 gprs havent web server. why??---> I need this with atcommands,