Advertisement
Guest User

Untitled

a guest
Jan 28th, 2020
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.49 KB | None | 0 0
  1. void uploadStatus() {
  2.   //Serial.println("\nStarting connection to server...");
  3.   // if you get a connection, report back via //Serial:
  4.   if (client.connect(server, 80)) {
  5.     digitalWrite(LED_BUILTIN, HIGH);
  6.     //Serial.println("connected to server");
  7.     // Make a HTTP request:
  8.     client.println("GET /paniek.php?q=arduino HTTP/1.1");
  9.     client.println("Host: www.brampeirs.com");
  10.     client.println("Connection: close");
  11.     client.println();
  12.     digitalWrite(LED_BUILTIN, LOW);
  13.   }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement