0
I am developing a project that aims to take the location of the GPS and send via GPRS to the server. However I want to know how to configure the APN so that it can be accepted chip of any carrier in the GPRS module?
while ( start_GPS() == 0);
while (sendATcommand("AT+CREG?", "+CREG: 0,1", 2000) == 0);
// sets APN , user name and password
sendATcommand("AT+SAPBR=3,1,\"Contype\",\"GPRS\"", "OK", 2000);
sendATcommand("AT+SAPBR=3,1,\"APN\",\"*******\"", "OK", 2000);
sendATcommand("AT+SAPBR=3,1,\"USER\",\"*******\"", "OK", 2000);
sendATcommand("AT+SAPBR=3,1,\"PWD\",\"*******\"", "OK", 2000);
// gets the GPRS bearer
while (sendATcommand("AT+SAPBR=1,1", "OK", 20000) == 0)
{
delay(5000);
}
delay(1000);
while(Serial.available() != 0)
{
Serial.read();
}