#include "SIM900.h"
#include <SoftwareSerial.h>
#include "inetGSM.h"
InetGSM inet;
int k=0;
int j=0;
char msg[150];
boolean found=false;
char data;
int numdata;
//char inSerial[50];
int i=0;
boolean started=false;
void setup()
{
Serial.begin(9600);
Serial.println("GSM Shield testing.");
if (gsm.begin(9600)){
Serial.println("\nstatus=READY");
started=true;
}
else Serial.println("\nstatus=IDLE");
if(started){
if (inet.attachGPRS("internet.wind", "", ""))
Serial.println("status=ATTACHED");
else Serial.println("status=ERROR");
delay(1000);
numdata=inet.httpPOST("MY ID ADDRESS", PORT, "", "my string i'm using to send to server",msg, 50);
//It work
}
};
void loop()
{
numdata=inet.httpPOST("MY ID ADDRESS", PORT, "", "my string i'm using to send to server",msg, 50);
//It doesn't work when i use it again
}
}