-
-
Save bstolte/45e168be4d3965896fa9 to your computer and use it in GitHub Desktop.
Send 10 texts loop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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