{"action":"created","issue":{"url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/1273","repository_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware","labels_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/1273/labels{/name}","comments_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/1273/comments","events_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/1273/events","html_url":"https://github.com/nodemcu/nodemcu-firmware/pull/1273","id":151802248,"number":1273,"title":"wifi example in README needs a connect() call","user":{"login":"TomK32","id":3527,"avatar_url":"https://avatars.githubusercontent.com/u/3527?v=3","gravatar_id":"","url":"https://api.github.com/users/TomK32","html_url":"https://github.com/TomK32","followers_url":"https://api.github.com/users/TomK32/followers","following_url":"https://api.github.com/users/TomK32/following{/other_user}","gists_url":"https://api.github.com/users/TomK32/gists{/gist_id}","starred_url":"https://api.github.com/users/TomK32/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomK32/subscriptions","organizations_url":"https://api.github.com/users/TomK32/orgs","repos_url":"https://api.github.com/users/TomK32/repos","events_url":"https://api.github.com/users/TomK32/events{/privacy}","received_events_url":"https://api.github.com/users/TomK32/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-29T06:38:42Z","updated_at":"2016-04-29T13:56:00Z","closed_at":"2016-04-29T10:29:25Z","pull_request":{"url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/pulls/1273","html_url":"https://github.com/nodemcu/nodemcu-firmware/pull/1273","diff_url":"https://github.com/nodemcu/nodemcu-firmware/pull/1273.diff","patch_url":"https://github.com/nodemcu/nodemcu-firmware/pull/1273.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/comments/215722437","html_url":"https://github.com/nodemcu/nodemcu-firmware/pull/1273#issuecomment-215722437","issue_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/1273","id":215722437,"user":{"login":"dnc40085","id":10802652,"avatar_url":"https://avatars.githubusercontent.com/u/10802652?v=3","gravatar_id":"","url":"https://api.github.com/users/dnc40085","html_url":"https://github.com/dnc40085","followers_url":"https://api.github.com/users/dnc40085/followers","following_url":"https://api.github.com/users/dnc40085/following{/other_user}","gists_url":"https://api.github.com/users/dnc40085/gists{/gist_id}","starred_url":"https://api.github.com/users/dnc40085/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dnc40085/subscriptions","organizations_url":"https://api.github.com/users/dnc40085/orgs","repos_url":"https://api.github.com/users/dnc40085/repos","events_url":"https://api.github.com/users/dnc40085/events{/privacy}","received_events_url":"https://api.github.com/users/dnc40085/received_events","type":"User","site_admin":false},"created_at":"2016-04-29T13:56:00Z","updated_at":"2016-04-29T13:56:00Z","body":"It would redundant to call `wifi.sta.connect()` after `wifi.sta.config()` since the function `wifi.sta.config()` calls [`wifi_station_connect()`](https://github.com/nodemcu/nodemcu-firmware/blob/dev/app/modules/wifi.c#L685) after WiFi credentials are set.\r\n\r\nThe only case it would be necessary to call `wifi.sta.connect()` is if the `auto` parameter was set to `0` (`wifi.sta.config(\"SSID\", \"password\", 0)`)."}}