creazione e connessione a GSM web server

Obbiettivo:
creare e connettersi ad un web server attraverso arduino e arduino GSM shield 2

Codice:
File/esempi/GSM/GsmWebServer

Descrizione:
1- Collegato e testato il funzionamento di arduino, shield, sim caricando l'esempio: File/esempi/GSM/ReceivesSMS, tutto funziona alla perfezione.

2- ora ho modificato lo sketch di GsmWebServer, applicando i dati relativi alla sim del mio provider che ho recuperato da internet

/*
 GSM Web Server
 
 A simple web server that shows the value of the analog input pins.
 using a GSM shield.

 Circuit:
 * GSM shield attached
 * Analog inputs attached to pins A0 through A5 (optional)
 
 created 8 Mar 2012
 by Tom Igoe
 */

// libraries
#include <GSM.h>

// PIN Number
#define PINNUMBER ""

// APN data
#define GPRS_APN       "mobile.vodafone.it" // replace your GPRS APN
#define GPRS_LOGIN     ""    // replace with your GPRS login
#define GPRS_PASSWORD  "" // replace with your GPRS password


// initialize the library instance
GPRS gprs;
GSM gsmAccess;     // include a 'true' parameter for debug enabled
GSMServer server(80); // port 80 (http default)

// timeout
const unsigned long __TIMEOUT__ = 10*1000;

void setup()
{
  // initialize serial communications and wait for port to open:
  Serial.begin(9600);
  while (!Serial) {
    ; // wait for serial port to connect. Needed for Leonardo only
  }
  
  // connection state
  boolean notConnected = true;
  
  // Start GSM shield
  // If your SIM has PIN, pass it as a parameter of begin() in quotes
  while(notConnected)
  {
    if((gsmAccess.begin(PINNUMBER)==GSM_READY) &
        (gprs.attachGPRS(GPRS_APN, GPRS_LOGIN, GPRS_PASSWORD)==GPRS_READY))
      notConnected = false;
    else
    {
      Serial.println("Not connected");
      delay(1000);
    }
  }
  
  Serial.println("Connected to GPRS network");
  
  // start server
  server.begin();
  
  //Get IP.
  IPAddress LocalIP = gprs.getIPAddress();
  Serial.println("Server IP address=");
  Serial.println(LocalIP);
}

void loop() {


  // listen for incoming clients
  GSMClient client = server.available();



  if (client)
  {  
    while (client.connected())
    {
      if (client.available())
      {
        Serial.println("Receiving request!");
        bool sendResponse = false;
        while(char c=client.read()) {
          if (c == '\n') sendResponse = true;
        }

     // if you've gotten to the end of the line (received a newline
     // character) 
       if (sendResponse)
       {
          // send a standard http response header
          client.println("HTTP/1.1 200 OK");
          client.println("Content-Type: text/html");
          client.println();
          client.println("<html>");
          // output the value of each analog input pin
          for (int analogChannel = 0; analogChannel < 6; analogChannel++) {
            client.print("analog input ");
            client.print(analogChannel);
            client.print(" is ");
            client.print(analogRead(analogChannel));
            client.println("
");       
          }
          client.println("</html>");
          //necessary delay
          delay(1000);
          client.stop();
        }
      }
    }
  }
}

3- Caricato lo sketch ed aperto il serial monitor ottengo:

Connected to GPRS network
Server IP address=
10.40.14.123

Problema:
Apro firefox dal mio pc connesso ad internet ed inserisco l'IP ma non riesco a connettermi. Qualcuno sa aiutarmi?

Grazie

Buona sera,
essendo il tuo primo post, nel rispetto del regolamento, ti chiedo cortesemente di presentarti QUI (spiegando bene quali conoscenze hai di elettronica e di programmazione ... possibilmente evitando di scrivere solo una riga di saluto) e di leggere con attenzione il su citato REGOLAMENTO ... Grazie. :slight_smile:

Guglielmo

Dopo solo 15 minuti chiedo scusa e chiuderei anche il topic:
a questo indirizzo posso notare che la domanda era stata gia posta ed anche in italiano.

http://forum.arduino.cc/index.php?topic=230079.0

, ma dovrà essere la scheda che, ad intervalli o in condizioni predeterminate, invia ad un server i dati

ringrazio