Black Lives Matter. Please consider donating to Black Girls Code today.

The CC3000 is not working with Plotly

Hi, I’m trying to use the example Simple CC3000, however the serial monitor returns the following:

… Initializing…
… Connected!
… Request DHCP
… Attempting to connect to plotly’s REST servers
… Attempting to resolve IP address of plot.ly52.21.32.7… Connected to plotly’s REST servers
… Sending HTTP Post to plotly
HTTP/1.1 200 OK
Content-Type: application/json
Date: Tue, 29 Dec 2015 22:03:23 GMT
Server: nginx/1.4.6 (Ubuntu)
Set-Cookie: csrftoken=VkZnvoEerDP6iaZ0GKQ210REieLOlc6t; expires=Thu, 29-Dec-2016 22:03:23 GMT; Max-Age=31622400; Path=/; secure
Set-Cookie: anoncsrf=P1wpGj5T1c2nGpWJ7nXFGttmzNdRToMC; expires=Wed, 30-Dec-2015 22:03:23 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”}HTTP/1.1 408 REQUEST_TIMEOUT
Connection: Close

… Connecting to plotly’s streaming servers…
… Looking up the IP address of
… Connected to plotly’s streaming servers
… Initializing stream
… Done initializing, ready to stream!

Please can someone help me figure out where I am going wrong?
I’m using the Arduino IDE 1.5.6 r2 and the library plotly_streaming_cc3000
Follows the code I’m trying to use:
#include <Adafruit_CC3000.h>
#include <ccspi.h>
#include <SPI.h>
#include <plotly_streaming_cc3000.h>
#define WLAN_SSID “SSDI”
#define WLAN_PASS “wifikey”

// Sign up to plotly here:
// View your API key and streamtokens here:
#define nTraces 2
// View your tokens here:
// Supply as many tokens as data traces
// e.g. if you want to ploty A0 and A1 vs time, supply two tokens
char *tokens[nTraces] = {“token 1”, “token 2”};
// arguments: username, api key, streaming token, filename
plotly graph = plotly(“username”, “API key”, tokens, “filename”, nTraces);

void wifi_connect(){
/* Initialise the module */
Serial.println(F("\n… Initializing…"));
if (!graph.cc3000.begin())
Serial.println(F("… Couldn’t begin()! Check your wiring?"));

// Optional SSID scan
// listSSIDResults();

if (!graph.cc3000.connectToAP(WLAN_SSID, WLAN_PASS, WLAN_SECURITY)) {

Serial.println(F("… Connected!"));

/* Wait for DHCP to complete */
Serial.println(F("… Request DHCP"));
while (!graph.cc3000.checkDHCP())
delay(100); // ToDo: Insert a DHCP timeout!

void setup() {

// Open serial communications and wait for port to open:
while (!Serial) {
; // wait for serial port to connect. Needed for Leonardo only


graph.fileopt=“overwrite”; // See the “Usage” section in for details
bool success;
success = graph.init();

unsigned long x;
int y;

void loop() {
graph.plot(millis(), analogRead(A0), tokens[0]);
graph.plot(millis(), analogRead(A1), tokens[1]);

Thank you for any help.

I have the same problem as you. But I think the problem are caused by internet connection. When I try ping the result came up request timeout.