Skip to content

Instantly share code, notes, and snippets.

@bstolte
Created March 26, 2014 05:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bstolte/45e168be4d3965896fa9 to your computer and use it in GitHub Desktop.
Save bstolte/45e168be4d3965896fa9 to your computer and use it in GitHub Desktop.
Send 10 texts loop
char server[] = "bstolte.com";
TCPClient client;
void setup() {
Serial.begin(9600);
delay(1000);
}
void loop() {
for (int x = 0; x < 10; x ++) {
client.connect(server, 80);
client.println("GET /motion_sms/sendsms/4154256133/hello HTTP/1.0");
client.println("Connection: close");
client.print("Host: ");
client.println(server);
client.println("Accept: text/html, text/plain");
client.println();
client.flush();
client.stop();
delay(5000);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment