how do I listen incoming tcp data from seeedstudio gprs shield v3.0 with arduino mega2560 ? For example arduino gprs shield’s have GSMClient client = server.available() command but I couldn’t find for seeedstudio gprs shield v3.0.
arduino test server****
void loop() {
GSMClient client = server.available();
if (client) {
if (client.available()) {
Serial.write(client.read());
}
}
}
seeedstudio test server****
void loop() {
???
if (client) {
if (client.available()) {
Serial.write(client.read());
}
}
Thank you for reply but this example is gprs client example.I want to use gprs shield listen mode. For example, you want to send a command string via tcp to gprs shield, gprs shield have to catch it and arduino mega interpret this string.