1
votes

I would like to send LIVE sensor data (say every 1 hour) to my own web page. I'm using GSM/GPRS shield with Arduino. The GSM module I'm using is SIM900.

2

2 Answers

0
votes

Do you trying send it by TCP or HTTP? I think the example from the link above works (the submitHttpRequest() function). There, you must to change the URL on the AT+HTTPPARA command to your URL.

Remember your web site need to be hosting in internet. I think the localhost project doesnt work, because you probably don't have a DNS neither an static real IP adress.

I think this video may help you:

https://www.youtube.com/watch?v=bDBOlcELNLA

-1
votes
float temp1=analogRead(A0);
  float ambient=(temp1*1.1*1000)/(1024*10);
  Serial.println(ambient);
  Stringone="field1=";
  Stringthree = Stringone+ ambient;
   // set http param value
   gprsSerial.println("AT+HTTPPARA=\"URL\",\"api.thingspeak.com/update?api_key=POIR2K6ZJDYENXPS&"+ Stringthree + " \"");
   delay(2000);
   toSerial();