Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. > AT+CIPSTART=0,"TCP","data.nba.net",80
  2. 0,CONNECT
  3.  
  4. OK
  5.  
  6. > AT+CIPSEND=0,103
  7. SEND OK
  8.  
  9. > GET /data/10s/prod/v1/20190214/scoreboard.json HTTP/1.1
  10. Host: data.nba.net
  11. Connection: keep-alive
  12.  
  13. +IPD,0,1460:HTTP/1.1 200 OK..
  14. .............................
  15. ...here comes the response...
  16. .............................
  17.  
  18. HTTPClient http;
  19. http.begin(request);
  20. if (http.GET() > 0) {
  21. response = http.getString();
  22. }
  23. http.end();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement