Advertisement
Guest User

aplot

a guest
May 24th, 2016
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. // Check If Connected
  2. while(!client.connected()){
  3. // Close Stream
  4. print_(F("0\r\n\r\n"));
  5. client.stop();
  6.  
  7. // Open Stream
  8. while ( !client.connect(arduino.plot.ly, 80) );
  9. print_(F("POST / HTTP/1.1\r\n"));
  10. print_(F("Host: arduino.plot.ly\r\n"));
  11. print_(F("User-Agent: Arduino\r\n"));
  12. print_(F("Transfer-Encoding: chunked\r\n"));
  13. print_(F("Connection: close\r\n"));
  14. if(convertTimestamp){
  15. print_(F("plotly-convertTimestamp: \""));
  16. print_(timezone);
  17. print_(F("\"\r\n"));
  18. }
  19. print_(F("\r\n"));
  20. }
  21.  
  22. // Send 52 Bytes of Data
  23. print_{"x": 7223, "y": 1.00, "streamtoken": "t9hm0ath3s"};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement