{"action":"created","issue":{"url":"https://api.github.com/repos/washo4evr/Socket.io-v1.x-Library/issues/1","repository_url":"https://api.github.com/repos/washo4evr/Socket.io-v1.x-Library","labels_url":"https://api.github.com/repos/washo4evr/Socket.io-v1.x-Library/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/washo4evr/Socket.io-v1.x-Library/issues/1/comments","events_url":"https://api.github.com/repos/washo4evr/Socket.io-v1.x-Library/issues/1/events","html_url":"https://github.com/washo4evr/Socket.io-v1.x-Library/issues/1","id":134960049,"number":1,"title":"ESP8266 won't connect to server","user":{"login":"deepikavira","id":11874113,"avatar_url":"https://avatars.githubusercontent.com/u/11874113?v=3","gravatar_id":"","url":"https://api.github.com/users/deepikavira","html_url":"https://github.com/deepikavira","followers_url":"https://api.github.com/users/deepikavira/followers","following_url":"https://api.github.com/users/deepikavira/following{/other_user}","gists_url":"https://api.github.com/users/deepikavira/gists{/gist_id}","starred_url":"https://api.github.com/users/deepikavira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepikavira/subscriptions","organizations_url":"https://api.github.com/users/deepikavira/orgs","repos_url":"https://api.github.com/users/deepikavira/repos","events_url":"https://api.github.com/users/deepikavira/events{/privacy}","received_events_url":"https://api.github.com/users/deepikavira/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":54,"created_at":"2016-02-19T20:03:10Z","updated_at":"2016-04-25T20:23:08Z","closed_at":null,"body":"@washo4evr, have you used this library for a server code written by you? In your comment you write that you are trying to connect to spark fun via HTTP commands. Please clarify if this is a socket.io connection that you are trying to establish or just a TCP connection.   "},"comment":{"url":"https://api.github.com/repos/washo4evr/Socket.io-v1.x-Library/issues/comments/214509087","html_url":"https://github.com/washo4evr/Socket.io-v1.x-Library/issues/1#issuecomment-214509087","issue_url":"https://api.github.com/repos/washo4evr/Socket.io-v1.x-Library/issues/1","id":214509087,"user":{"login":"deepikavira","id":11874113,"avatar_url":"https://avatars.githubusercontent.com/u/11874113?v=3","gravatar_id":"","url":"https://api.github.com/users/deepikavira","html_url":"https://github.com/deepikavira","followers_url":"https://api.github.com/users/deepikavira/followers","following_url":"https://api.github.com/users/deepikavira/following{/other_user}","gists_url":"https://api.github.com/users/deepikavira/gists{/gist_id}","starred_url":"https://api.github.com/users/deepikavira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepikavira/subscriptions","organizations_url":"https://api.github.com/users/deepikavira/orgs","repos_url":"https://api.github.com/users/deepikavira/repos","events_url":"https://api.github.com/users/deepikavira/events{/privacy}","received_events_url":"https://api.github.com/users/deepikavira/received_events","type":"User","site_admin":false},"created_at":"2016-04-25T20:23:08Z","updated_at":"2016-04-25T20:23:08Z","body":"@washo4evr  I am indeed using softAP at the time of setup and then later I have initiated the client mode. The sequence in which you write these two statements is very important. \r\nWiFi.softAP(AP_NameChar, WiFiAPPSK);\r\nWiFi.begin(ssid, password);\r\n\r\nApparently you don't have to restart the ESP if you do it this way. I basically tried using the ESP in client+AP mode but that didn't work. I could not connect my phone to the ESP(in this case as an AP).\r\nThen I tried using it in softAP and restarting it as client after gathering the required information. This worked pretty well but restarting it was a trouble each time. (I was using certain flags to tell the ESP to start in AP mode or client mode). Then finally from one of the online blogs I found out that if we start it as softAP and then later give the WiFi.begin(ssid, password) command then it can work in the dual mode perfectly fine. i.e host a web server and side by side connect to other servers on the web. \r\n\r\nLong story short this is the way I am currently using my ESP WiFi.softAP(). On the webpage that I am hosting I wait for user to feed in the wifi network name & SSID my ESP is supposed to connect to. Once I get that information then I give the  WiFi.begin(ssid, password); command and proceed to use the ESP in client mode for most part.\r\n\r\nCheers!!\r\n"}}