/* Sketch: GPRS Call Up Function: This sketch is used to test seeeduino GPRS's callUp function.to make it work, you should insert SIM card to Seeeduino GPRS and replace the phoneNumber,enjoy it! ********************************************************************************* note: the following pins has been used and should not be used for other purposes. pin 8 // tx pin pin 7 // rx pin pin 9 // power key pin pin 12 // power status pin ********************************************************************************* created on 2013/12/5, version: 0.1 by lawliet.zou(lawliet.zou@gmail.com) */ #include #include GPRS gprs; void setup() { Serial.begin(9600); while(!Serial); Serial.println("GPRS - Call up Test..."); gprs.preInit();//power on SIM800 delay(1000); while(0 !=gprs.init()) { //gprs init delay(1000); Serial.print("init error\r\n"); } Serial.println("Init success, start to call..."); gprs.callUp("150****9566"); } void loop() { //nothing to do }