{"action":"created","issue":{"url":"https://api.github.com/repos/micropython/micropython/issues/1319","labels_url":"https://api.github.com/repos/micropython/micropython/issues/1319/labels{/name}","comments_url":"https://api.github.com/repos/micropython/micropython/issues/1319/comments","events_url":"https://api.github.com/repos/micropython/micropython/issues/1319/events","html_url":"https://github.com/micropython/micropython/issues/1319","id":87309540,"number":1319,"title":"wipy: Consider moving \"operation mode\" param from network.WLAN() constructor to a method","user":{"login":"pfalcon","id":500451,"avatar_url":"https://avatars.githubusercontent.com/u/500451?v=3","gravatar_id":"","url":"https://api.github.com/users/pfalcon","html_url":"https://github.com/pfalcon","followers_url":"https://api.github.com/users/pfalcon/followers","following_url":"https://api.github.com/users/pfalcon/following{/other_user}","gists_url":"https://api.github.com/users/pfalcon/gists{/gist_id}","starred_url":"https://api.github.com/users/pfalcon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfalcon/subscriptions","organizations_url":"https://api.github.com/users/pfalcon/orgs","repos_url":"https://api.github.com/users/pfalcon/repos","events_url":"https://api.github.com/users/pfalcon/events{/privacy}","received_events_url":"https://api.github.com/users/pfalcon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":28,"created_at":"2015-06-11T11:25:43Z","updated_at":"2015-06-13T11:10:06Z","closed_at":null,"body":"We should set meta-interface for \"network\" module. Proposed points:\r\n\r\n1. Constructor of classes in network module should accept only arguments related to hardware parameters. Good example is http://docs.micropython.org/en/latest/library/network.html#network.CC3K - a cc3k module can be attached to any SPI port, so it takes that as an argument. If hardware in question is \"builtin\" and comes in single instance, there should be no arguments to constructor. If there're number of similar builtin hardware blocks, there should be single param, and identifier of particular block.\r\n\r\n2. For builtin WiFi hardware, class name should be WLAN (really? were alternatives like WIFI, WiFi considered?)\r\n\r\n3. All other param should be configurable via other methods, and it should be possible to reconfigure them on the fly. E.g., as station/ap mode for WiFi. If on the fly reconfig is not possible, a particular port should describe that limitation.\r\n"},"comment":{"url":"https://api.github.com/repos/micropython/micropython/issues/comments/111699321","html_url":"https://github.com/micropython/micropython/issues/1319#issuecomment-111699321","issue_url":"https://api.github.com/repos/micropython/micropython/issues/1319","id":111699321,"user":{"login":"pfalcon","id":500451,"avatar_url":"https://avatars.githubusercontent.com/u/500451?v=3","gravatar_id":"","url":"https://api.github.com/users/pfalcon","html_url":"https://github.com/pfalcon","followers_url":"https://api.github.com/users/pfalcon/followers","following_url":"https://api.github.com/users/pfalcon/following{/other_user}","gists_url":"https://api.github.com/users/pfalcon/gists{/gist_id}","starred_url":"https://api.github.com/users/pfalcon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfalcon/subscriptions","organizations_url":"https://api.github.com/users/pfalcon/orgs","repos_url":"https://api.github.com/users/pfalcon/repos","events_url":"https://api.github.com/users/pfalcon/events{/privacy}","received_events_url":"https://api.github.com/users/pfalcon/received_events","type":"User","site_admin":false},"created_at":"2015-06-13T11:10:06Z","updated_at":"2015-06-13T11:10:06Z","body":"@danicampora : I'll let you know when enough functions will be moved from \"esp\" module to \"network\" so it will make sense to update docs in big chunk. If you'll be doing that, you will find \"network\" docs for other port useful, so hopefully will note that this ticket has links to them for reference.\r\n"}}