This example no longer works as the Twitter authentication mode has changed, and is no longer compatible with the Arduino library.
Examples > Make Voice Call
This example shows how to use the GSM Shield and Library to make voice calls. Please click here for more information on the GSM library.
Examples > GSM library
This sketch connects to Twitter using an Ethernet shield. It parses the XML returned, and looks for <text>this is a tweet</text>.
Make sure your SIM is data enabled and you have the necessary information to connect to the network. You'll need the Access Point Name (APN), login, and password of the carrier. To obtain this information, contact your network provider for the most up to date information. This page has some information about various carrier settings, but it may not be current.
The code below is configured for use with a GSM/GPRS shield. In the variable declaration area, you need to instantiate both the
GSMVoiceCall classes. Inside
GSM.begin(), with the
PINNUMBER of your SIM card as parameter.
GSM.begin() will return whether the shield managed to connect to the GSM network or not.
loop(), the input from the Serial Monitor is used to tell the GSM Shield a phone number to call to. The code waits until the call is over before performing any other actions.