Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. enter code here
  2. url = "/forms/ajaxDeviceValue";
  3. Serial.print("requesting URL: ");
  4. Serial.println(url);
  5. client.print(String("GET ") + url + " HTTP/1.1rn" +
  6. "Host: " + host + "rn" +
  7. "Connection: closernrn"
  8. +"Content-Type: application/json");
  9. while (client.connected()) {
  10. line = client.read();
  11. Serial.print(line);
  12. readJsonResponse += line;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement