{"action":"created","issue":{"url":"https://api.github.com/repos/Links2004/arduinoWebSockets/issues/103","repository_url":"https://api.github.com/repos/Links2004/arduinoWebSockets","labels_url":"https://api.github.com/repos/Links2004/arduinoWebSockets/issues/103/labels{/name}","comments_url":"https://api.github.com/repos/Links2004/arduinoWebSockets/issues/103/comments","events_url":"https://api.github.com/repos/Links2004/arduinoWebSockets/issues/103/events","html_url":"https://github.com/Links2004/arduinoWebSockets/issues/103","id":163520130,"number":103,"title":"SSL error,failed to grow plain buffer","user":{"login":"jatayu86","id":12123631,"avatar_url":"https://avatars.githubusercontent.com/u/12123631?v=3","gravatar_id":"","url":"https://api.github.com/users/jatayu86","html_url":"https://github.com/jatayu86","followers_url":"https://api.github.com/users/jatayu86/followers","following_url":"https://api.github.com/users/jatayu86/following{/other_user}","gists_url":"https://api.github.com/users/jatayu86/gists{/gist_id}","starred_url":"https://api.github.com/users/jatayu86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jatayu86/subscriptions","organizations_url":"https://api.github.com/users/jatayu86/orgs","repos_url":"https://api.github.com/users/jatayu86/repos","events_url":"https://api.github.com/users/jatayu86/events{/privacy}","received_events_url":"https://api.github.com/users/jatayu86/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-07-02T14:13:15Z","updated_at":"2016-07-03T13:42:44Z","closed_at":null,"body":"Hi,\r\nI am getting the below error when trying to connect to wss enabled server.Below are the logs after debug is enabled.Could you please help me as to why we get this error. The esp resets after some time.\r\n\r\n[WS-Client] connect wss...\r\nplease start sntp first !\r\n[WS-Client] connected to predix-eyweb.run.aws-usw02-pr.ice.predix.io:443.\r\n[WS-Client][sendHeader] sending header...\r\nfailed to grow plain buffer\r\n[WS-Client][sendHeader] sending header... Done (21764us).\r\n[WS][0][sendFrame] not in WSC_CONNECTED state!?"},"comment":{"url":"https://api.github.com/repos/Links2004/arduinoWebSockets/issues/comments/230154110","html_url":"https://github.com/Links2004/arduinoWebSockets/issues/103#issuecomment-230154110","issue_url":"https://api.github.com/repos/Links2004/arduinoWebSockets/issues/103","id":230154110,"user":{"login":"jatayu86","id":12123631,"avatar_url":"https://avatars.githubusercontent.com/u/12123631?v=3","gravatar_id":"","url":"https://api.github.com/users/jatayu86","html_url":"https://github.com/jatayu86","followers_url":"https://api.github.com/users/jatayu86/followers","following_url":"https://api.github.com/users/jatayu86/following{/other_user}","gists_url":"https://api.github.com/users/jatayu86/gists{/gist_id}","starred_url":"https://api.github.com/users/jatayu86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jatayu86/subscriptions","organizations_url":"https://api.github.com/users/jatayu86/orgs","repos_url":"https://api.github.com/users/jatayu86/repos","events_url":"https://api.github.com/users/jatayu86/events{/privacy}","received_events_url":"https://api.github.com/users/jatayu86/received_events","type":"User","site_admin":false},"created_at":"2016-07-03T13:42:44Z","updated_at":"2016-07-03T13:42:44Z","body":"I am unable to find any more optimization,can you please check if there is any more than can be done.. :(\r\n#include <Arduino.h>\r\n#include <ESP8266WiFi.h>\r\n#include <ESP8266WiFiMulti.h>\r\n#include <WebSocketsClient.h>\r\n#include <Hash.h>\r\nESP8266WiFiMulti WiFiMulti;\r\nWebSocketsClient webSocket;\r\n#define USE_SERIAL Serial\r\n\r\nvoid webSocketEvent(WStype_t type, uint8_t * payload, size_t lenght) {\r\n    switch(type) {\r\n        case WStype_DISCONNECTED:\r\n            USE_SERIAL.printf(\"[WSc] Disconnected!\\n\");\r\n            break;\r\n        case WStype_CONNECTED:\r\n            {\r\n                USE_SERIAL.printf(\"[WSc] Connected to url: %s\\n\",  payload);\r\n            }\r\n            break;\r\n        case WStype_BIN:\r\n            USE_SERIAL.printf(\"[WSc] get binary lenght: %u\\n\", lenght);\r\n            hexdump(payload, lenght);\r\n            break;\r\n    }\r\n\r\n}\r\n\r\nvoid setup() {\r\n    // USE_SERIAL.begin(921600);\r\n    USE_SERIAL.begin(115200);\r\n    USE_SERIAL.setDebugOutput(true);\r\n      for(uint8_t t = 4; t > 0; t--) {\r\n          USE_SERIAL.printf(\"[SETUP] BOOT WAIT %d...\\n\", t);\r\n          USE_SERIAL.flush();\r\n          delay(1000);\r\n      }\r\n    WiFiMulti.addAP(\"xxx\", \"xxx\");\r\n    while(WiFiMulti.run() != WL_CONNECTED) {\r\n        delay(100);\r\n    }\r\n    webSocket.beginSSL(\"predix-eyweb.run.aws-usw02-pr.ice.predix.io\",443,\"/\");\r\n    webSocket.onEvent(webSocketEvent);\r\n}\r\n\r\nvoid loop() {\r\n  String device=\"P101\";\r\nString json= \"{\\\"device\\\":\\\"\"+device+\"\\\"}\";\r\n    USE_SERIAL.println(json);\r\n    webSocket.loop();\r\n    delay(100);\r\n  }"}}
{"actor":{"display_login":"jatayu86"}}