Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Check If Connected
- while(!client.connected()){
- // Close Stream
- print_(F("0\r\n\r\n"));
- client.stop();
- // Open Stream
- while ( !client.connect(arduino.plot.ly, 80) );
- print_(F("POST / HTTP/1.1\r\n"));
- print_(F("Host: arduino.plot.ly\r\n"));
- print_(F("User-Agent: Arduino\r\n"));
- print_(F("Transfer-Encoding: chunked\r\n"));
- print_(F("Connection: close\r\n"));
- if(convertTimestamp){
- print_(F("plotly-convertTimestamp: \""));
- print_(timezone);
- print_(F("\"\r\n"));
- }
- print_(F("\r\n"));
- }
- // Send 52 Bytes of Data
- print_{"x": 7223, "y": 1.00, "streamtoken": "t9hm0ath3s"};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement