{"action":"opened","issue":{"url":"https://api.github.com/repos/plotly/arduino-api/issues/43","labels_url":"https://api.github.com/repos/plotly/arduino-api/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/plotly/arduino-api/issues/43/comments","events_url":"https://api.github.com/repos/plotly/arduino-api/issues/43/events","html_url":"https://github.com/plotly/arduino-api/issues/43","id":68671246,"number":43,"title":"Arduino Uno + WiFi shield cannot connect to REST server","user":{"login":"ranaya123","id":11961385,"avatar_url":"https://avatars.githubusercontent.com/u/11961385?v=3","gravatar_id":"","url":"https://api.github.com/users/ranaya123","html_url":"https://github.com/ranaya123","followers_url":"https://api.github.com/users/ranaya123/followers","following_url":"https://api.github.com/users/ranaya123/following{/other_user}","gists_url":"https://api.github.com/users/ranaya123/gists{/gist_id}","starred_url":"https://api.github.com/users/ranaya123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ranaya123/subscriptions","organizations_url":"https://api.github.com/users/ranaya123/orgs","repos_url":"https://api.github.com/users/ranaya123/repos","events_url":"https://api.github.com/users/ranaya123/events{/privacy}","received_events_url":"https://api.github.com/users/ranaya123/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-15T12:41:43Z","updated_at":"2015-04-15T12:41:43Z","closed_at":null,"body":"Hi all,\r\n\r\nI am using Arduino Uno with its WiFi shield to plot sensor data with plotly_streaming_wifi library. Every time Arduino connects to wifi network without a problem, but is unable establish the connection to plotly server. I use the same code given for this streaming library with arduino 1.3.0 version. \r\n\r\nHere is my code which sends random data to a plotly graph : \r\n------------------------------------------------------------------------------------------------------------------------------\r\n#include <plotly_streaming_wifi.h>\r\n#include <WiFi.h>\r\n\r\n#define nTraces 2\r\nchar *tokens[nTraces] = {\"9upztvuxrt\", \"f66uebcznx\"};\r\nplotly graph(\"ranaya123\", \"iqlaivji2u\", tokens, \"pissu\", nTraces);\r\n\r\nint status = WL_IDLE_STATUS;     // the Wifi radio's status\r\nchar ssid[] = \"XXX\"; //  your network SSID (name)\r\nchar pass[] = \"XXXXXXX123\"; // // your network password\r\n\r\nvoid wifi_connect(){\r\n    Serial.println(\"... Attempting to connect to WPA network...\");\r\n    status = WiFi.begin(ssid, pass);\r\n    if ( status != WL_CONNECTED) {\r\n       Serial.println(\"... Couldn't get a WiFi connection, trying again\");\r\n       wifi_connect();\r\n    }else {\r\n       Serial.println(\"... Connected to network\");\r\n    }\r\n}\r\n\r\nvoid setup() {\r\n    graph.maxpoints = 100;\r\n    Serial.begin(9600);\r\n    while (!Serial) {\r\n       ; // wait for serial port to connect. Needed for Leonardo only\r\n    }\r\n    graph.fileopt = \"overwrite\";\r\n    wifi_connect();\r\n    bool success;\r\n    success = graph.init();\r\n    if(!success){while(true){}}\r\n    graph.openStream();\r\n}\r\n\r\nvoid loop() {\r\n      float h = random(1,5);\r\n      float t = random(1,50);\r\n      graph.plot(millis(), t, tokens[0]);\r\n      graph.plot(millis(), h, tokens[1]);\r\n      delay(3000);\r\n}\r\n-----------------------------------------------------------------------------------------------------------------\r\n\r\nIn serial monitor, I am getting following messages in serial monitor.\r\n ... Attempting to connect to WPA network...\r\n... Connected to network\r\n... Attempting to connect to plotly's REST servers\r\n... Couldn't connect to plotly's REST servers... trying again!\r\n... Couldn't connect to plotly's REST servers... trying again!\r\n... Couldn't connect to plotly's REST servers... trying again!\r\n\r\n So is this a problem at server side ? If yes, can anyone explain me how to set the REST server at plotly site ? "}}