Issue with Arduino plotting data. I’ve tested with the ploty library for arduino ethernet and unchanged arduino example code (all needed changes are made, streaming tokens and so on).
This is what gets printed from Serial:
... Initializing ethernet
... Done initializing ethernet
... Attempting to connect to plotly's REST servers
... Connected to plotly's REST servers
... Sending HTTP Post to plotly
POST /clientresp HTTP/1.1
Host: plot.ly:80
User-Agent: Arduino/0.6.0
Content-Length: 348
version=2.3&origin=plot&platform=arduino&un=***********&key=82kkmty1ku&args=[{"y": [], "x": [], "type": "scatter", "stream": {"token": "*********", "maxpoints": 30}}, {"y": [], "x": [], "type": "scatter", "stream": {"token": "**********", "maxpoints": 30}}]&kwargs={"fileopt": "overwrite", "filename": "your_filename", "world_readable": true}
... Sent message, waiting for plotly's response...
HTTP/1.1 200 OK
Content-Type: application/json
Date: Wed, 30 Dec 2015 22:04:37 GMT
Server: nginx/1.4.6 (Ubuntu)
Set-Cookie: csrftoken=DVwWDIhTOn3rXpl841bMiks7LgXMlk3n; expires=Fri, 30-Dec-2016 22:04:37 GMT; Max-Age=31622400; Path=/; secure
Set-Cookie: anoncsrf=rVC0qifF0GJ0YZ1Jul48nuGdQcruhkKZ; expires=Thu, 31-Dec-2015 22:04:37 GMT; httponly; Max-Age=86400; Path=/
Vary: Accept-Encoding
Vary: Cookie
X-Frame-Options: SAMEORIGIN
Content-Length: 138
Connection: keep-alive
{"url": "", "message": "", "warning": "", "filename": "", "error": "Missing required POST parameters: platform un key origin args kwargs"}
I found similiar issue in this thread (electricImp - Missing required POST parameters: platform un key origin args kwargs) but I could’t locate the “local headers = { “Content-Type” : “application/json” };” in the plotly streaming library. Can this issue be confirmed for the arduino ethernet library and arduino ethernet example?