{"action":"created","issue":{"url":"https://api.github.com/repos/espruino/Espruino/issues/1221","repository_url":"https://api.github.com/repos/espruino/Espruino","labels_url":"https://api.github.com/repos/espruino/Espruino/issues/1221/labels{/name}","comments_url":"https://api.github.com/repos/espruino/Espruino/issues/1221/comments","events_url":"https://api.github.com/repos/espruino/Espruino/issues/1221/events","html_url":"https://github.com/espruino/Espruino/issues/1221","id":251177277,"number":1221,"title":"Implement  Captive Portal to enter AccessPoint credentials","user":{"login":"MaBecker","id":15932646,"avatar_url":"https://avatars3.githubusercontent.com/u/15932646?v=4","gravatar_id":"","url":"https://api.github.com/users/MaBecker","html_url":"https://github.com/MaBecker","followers_url":"https://api.github.com/users/MaBecker/followers","following_url":"https://api.github.com/users/MaBecker/following{/other_user}","gists_url":"https://api.github.com/users/MaBecker/gists{/gist_id}","starred_url":"https://api.github.com/users/MaBecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaBecker/subscriptions","organizations_url":"https://api.github.com/users/MaBecker/orgs","repos_url":"https://api.github.com/users/MaBecker/repos","events_url":"https://api.github.com/users/MaBecker/events{/privacy}","received_events_url":"https://api.github.com/users/MaBecker/received_events","type":"User","site_admin":false},"labels":[{"id":58172742,"url":"https://api.github.com/repos/espruino/Espruino/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-08-18T08:37:34Z","updated_at":"2018-04-10T11:13:37Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Started to work on Captive Portal to enter SSID and Password to easily connect a Wifi enable Espruino device to a local AP. All this is based on UPD  dgram from @opichals .\r\n\r\n[-] implement a wrapper module for all wifi devices \r\n[x] setup dns server to  handle IP4 request\r\n[x]  with own ip\r\n[x] setup http server\r\n[x] redirect to own http server \r\n[-] present page to enter SSID and Password\r\n[-] create a CaptivePortal JS module\r\n\r\nFirst version of [CaptivePortal.js](https://gist.github.com/MaBecker/ae9dade26b44524e076ca19f5fd72fab) is still ESP specific because the first topic is missing.\r\n\r\n@gfwilliams What are your thoughts  about such a wifi device wrapper?\r\n\r\n**Any hints, comments or wishes are welcome.** "},"comment":{"url":"https://api.github.com/repos/espruino/Espruino/issues/comments/380062436","html_url":"https://github.com/espruino/Espruino/issues/1221#issuecomment-380062436","issue_url":"https://api.github.com/repos/espruino/Espruino/issues/1221","id":380062436,"user":{"login":"wilberforce","id":5050824,"avatar_url":"https://avatars2.githubusercontent.com/u/5050824?v=4","gravatar_id":"","url":"https://api.github.com/users/wilberforce","html_url":"https://github.com/wilberforce","followers_url":"https://api.github.com/users/wilberforce/followers","following_url":"https://api.github.com/users/wilberforce/following{/other_user}","gists_url":"https://api.github.com/users/wilberforce/gists{/gist_id}","starred_url":"https://api.github.com/users/wilberforce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wilberforce/subscriptions","organizations_url":"https://api.github.com/users/wilberforce/orgs","repos_url":"https://api.github.com/users/wilberforce/repos","events_url":"https://api.github.com/users/wilberforce/events{/privacy}","received_events_url":"https://api.github.com/users/wilberforce/received_events","type":"User","site_admin":false},"created_at":"2018-04-10T11:13:37Z","updated_at":"2018-04-10T11:13:37Z","author_association":"CONTRIBUTOR","body":"Yes. I would like to use the Storage module to save a list of known access points and passwords.\r\n\r\nThen on start up:\r\n\r\nTest for conection. If ok done.\r\nTry to connect to last connection. If ok done.\r\nScan the network, try to connect to the strongest with a known saved password... work the through the list.\r\nIf this fails then start as an AP and fire up the active portal... on connect, stop AP.\r\n\r\nI might be over complicating things here!\r\n\r\nSo extending the concept of wifi.save to work with known existing networks, and only on failure do the captive portal."}}
{"actor":{"display_login":"wilberforce"}}