{"action":"created","issue":{"url":"https://api.github.com/repos/micropython/micropython/issues/1946","repository_url":"https://api.github.com/repos/micropython/micropython","labels_url":"https://api.github.com/repos/micropython/micropython/issues/1946/labels{/name}","comments_url":"https://api.github.com/repos/micropython/micropython/issues/1946/comments","events_url":"https://api.github.com/repos/micropython/micropython/issues/1946/events","html_url":"https://github.com/micropython/micropython/issues/1946","id":144629985,"number":1946,"title":"wlan.connect function causes esp8266-03 to reset","user":{"login":"ceremcem","id":6639874,"avatar_url":"https://avatars.githubusercontent.com/u/6639874?v=3","gravatar_id":"","url":"https://api.github.com/users/ceremcem","html_url":"https://github.com/ceremcem","followers_url":"https://api.github.com/users/ceremcem/followers","following_url":"https://api.github.com/users/ceremcem/following{/other_user}","gists_url":"https://api.github.com/users/ceremcem/gists{/gist_id}","starred_url":"https://api.github.com/users/ceremcem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceremcem/subscriptions","organizations_url":"https://api.github.com/users/ceremcem/orgs","repos_url":"https://api.github.com/users/ceremcem/repos","events_url":"https://api.github.com/users/ceremcem/events{/privacy}","received_events_url":"https://api.github.com/users/ceremcem/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-03-30T15:33:22Z","updated_at":"2016-03-31T10:22:25Z","closed_at":null,"body":"As a follow up of #1943, `wlan.connect` function causes reset: \r\n\r\n```\r\nprint(\"naber\")\r\nnaber\r\n>>> import network\r\n>>> wlan = network.WLAN(network.STA_IF)\r\n>>> wlan.active(True)\r\n>>> wlan.scan()\r\nf r0, scandone\r\n[(b'aktos-elektronik', b'\\x00\\x1c\\xa8\\xf7\\xe8M', 6, -49, 3, 0), (b'UEM', b'\\xf4\\xe3\\xfb\\xbak\\xdc', 9, -92, 4, 0), (b'TTNET_HUAWEI_827F', b'\\xec#=d\\x82\\x88', 10, -91, 4, 0)]\r\n>>> wlan.isconnected()\r\nFalse\r\n>>> wlan.connect(\"aea\", \"084DA789BF\")\r\nFatal exception 3(LoadStoreErrorCause):\r\nepc1=0x4000deed, epc2=0x00000000, epc3=0x00000000, excvaddr=0x40000008, depc=0x00000000\r\n\r\n ets Jan  8 2013,rst cause:1, boot mode:(1,7)\r\n```"},"comment":{"url":"https://api.github.com/repos/micropython/micropython/issues/comments/203868205","html_url":"https://github.com/micropython/micropython/issues/1946#issuecomment-203868205","issue_url":"https://api.github.com/repos/micropython/micropython/issues/1946","id":203868205,"user":{"login":"deshipu","id":1181357,"avatar_url":"https://avatars.githubusercontent.com/u/1181357?v=3","gravatar_id":"","url":"https://api.github.com/users/deshipu","html_url":"https://github.com/deshipu","followers_url":"https://api.github.com/users/deshipu/followers","following_url":"https://api.github.com/users/deshipu/following{/other_user}","gists_url":"https://api.github.com/users/deshipu/gists{/gist_id}","starred_url":"https://api.github.com/users/deshipu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deshipu/subscriptions","organizations_url":"https://api.github.com/users/deshipu/orgs","repos_url":"https://api.github.com/users/deshipu/repos","events_url":"https://api.github.com/users/deshipu/events{/privacy}","received_events_url":"https://api.github.com/users/deshipu/received_events","type":"User","site_admin":false},"created_at":"2016-03-31T10:22:25Z","updated_at":"2016-03-31T10:22:25Z","body":"I just noticed a weird discrepancy:\r\n```\r\n>>> import network\r\n>>> import esp\r\n>>> esp.STA_MODE\r\n1\r\n>>> network.STA_IF\r\n0\r\n```\r\nPerhaps the constants didn't get changed everywhere?"}}