It still does not work.
I wish to display the result or status of each command, in order to make sure that all of them return me an OK.
Here is my code. Each command ate followed by status() function. I also add
cell.print("+SOCKSTATUS");
, but it does not show/display anythink
Serial.println(F("Setting up PDP Context"));
cell.println("AT+CGDCONT=1,\"IP\",\"internet\"");
status();
delay(1000);
Serial.println(F("Activating PDP Context"));
cell.println("AT+CGACT=1,1");
status();
delay(1000);
Serial.println(F("Configuring TCP connection to TCP Server"));
cell.println("AT+SDATACONF=1,\"TCP\",\"92.104.69.134\",81");
status();
delay(1000);
Serial.println(F("Starting TCP Connection\n"));
cell.println("AT+SDATASTART=1,1");
status();
delay(1000);
Serial.println(F("Getting status"));
cell.print("AT+SDATASTATUS=1");
status();
Serial.println(F("Display status"));
cell.print("+SOCKSTATUS");
status();
Here is my status() command
static void status(){
while(cell.available()){
incoming_status=cell.read();
Serial.print(incoming_status);
}
}
Please, help with exemple, it would be very nice from you.
Have a nice day.