Tutorial.GSMExamplesWebServer History

Hide minor edits - Show changes to markup

September 02, 2015, at 09:42 PM by Simone Maiocchi -
Changed lines 1-6 from:
Changed lines 199-202 from:
Added line 206:
August 17, 2015, at 09:27 AM by Simone Maiocchi -
Changed line 2 from:

Tutorials > Examples? > GSM > GSMExamplesWebServer


Tutorials > Examples? > GSM > WebServer

August 13, 2015, at 07:02 PM by Simone Maiocchi -
Changed lines 175-176 from:

See Also:


See Also

August 13, 2015, at 07:02 PM by Simone Maiocchi -
Changed lines 1-14 from:
Added lines 5-20:
Changed lines 26-27 from:

image of the Arduino GSM Shield on top of an Arduino Uno


image of the Arduino GSM Shield on top of an Arduino or Genuino board

Optional analog sensors like photoresistors, potentiometers and such may be connected, as explained elsewhere in our tutorials, to pins A0 - A5

Added lines 32-33:


Added line 169:

The complete sketch is below.

Changed lines 171-287 from:
Changed lines 180-186 from:

Last revision 2015/08/13 by SM

March 11, 2013, at 10:36 AM by Scott Fitzgerald -
Changed lines 284-293 from:
February 02, 2013, at 11:35 AM by Scott Fitzgerald -
Changed lines 1-6 from:

Examples > Make Voice Call

Using the GSM Shield to Make Calls

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

GSM Web Server

This sketch turns the Arduino with a GSM shield and a data enabled SIM card into a web server. When the Arduino receives a request from a connected client, it sends back the value of analog inputs 0-5.

Not all network operators allow incoming data requests from outside their network. This means you can create a web server with the GSM shield, but you may not be able to connect to it from the public internet; only from another data enabled device from the same provider on the same network. You should check with your provider to see what specific policies they have in place regarding incoming data connections.

Changed lines 13-14 from:
  • SIM card
  • SIM card with a data connection
  • (optional) 6 potentiometers or other analog inputs attached to A0-A5
Changed lines 26-28 from:

The code below is configured for use with a GSM/GPRS shield. In the variable declaration area, you need to instantiate both the GSM and GSMVoiceCall classes. Inside setup(), call 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.

In the 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.

Changed lines 162-278 from:
Changed line 284 from:
November 16, 2012, at 07:58 PM by Scott Fitzgerald -
Added lines 1-34: