{"action":"created","issue":{"url":"https://api.github.com/repos/letscontrolit/ESPEasy/issues/1165","repository_url":"https://api.github.com/repos/letscontrolit/ESPEasy","labels_url":"https://api.github.com/repos/letscontrolit/ESPEasy/issues/1165/labels{/name}","comments_url":"https://api.github.com/repos/letscontrolit/ESPEasy/issues/1165/comments","events_url":"https://api.github.com/repos/letscontrolit/ESPEasy/issues/1165/events","html_url":"https://github.com/letscontrolit/ESPEasy/pull/1165","id":308212258,"number":1165,"title":"[wifi] Event based connect/reconnect","user":{"login":"TD-er","id":3751318,"avatar_url":"https://avatars3.githubusercontent.com/u/3751318?v=4","gravatar_id":"","url":"https://api.github.com/users/TD-er","html_url":"https://github.com/TD-er","followers_url":"https://api.github.com/users/TD-er/followers","following_url":"https://api.github.com/users/TD-er/following{/other_user}","gists_url":"https://api.github.com/users/TD-er/gists{/gist_id}","starred_url":"https://api.github.com/users/TD-er/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TD-er/subscriptions","organizations_url":"https://api.github.com/users/TD-er/orgs","repos_url":"https://api.github.com/users/TD-er/repos","events_url":"https://api.github.com/users/TD-er/events{/privacy}","received_events_url":"https://api.github.com/users/TD-er/received_events","type":"User","site_admin":false},"labels":[{"id":855470727,"url":"https://api.github.com/repos/letscontrolit/ESPEasy/labels/Category:%20Stabiliy","name":"Category: Stabiliy","color":"5319e7","default":false},{"id":257820025,"url":"https://api.github.com/repos/letscontrolit/ESPEasy/labels/Type:%20Enhancement","name":"Type: Enhancement","color":"84b6eb","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":31,"created_at":"2018-03-24T00:20:03Z","updated_at":"2018-03-25T10:32:43Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/letscontrolit/ESPEasy/pulls/1165","html_url":"https://github.com/letscontrolit/ESPEasy/pull/1165","diff_url":"https://github.com/letscontrolit/ESPEasy/pull/1165.diff","patch_url":"https://github.com/letscontrolit/ESPEasy/pull/1165.patch"},"body":"Now using the core WiFiEvents to act on:\r\n\r\n- connect\r\n- disconnect\r\n- gotIP\r\n\r\nThis will make polling for a status no longer needed.\r\nIt also allows to get a better understanding in why diconnects happen, since the disconnect reason is given in the events.\r\nThis extra information is also present on the information panel on the webinterface and also in the JSON output.\r\n\r\nThe entire connect/disconnect/reconnect is now done completely asynchronous and thus takes much less resources from the ESP.\r\nA disconnect will now also send an event: \"WiFi#Disconnected\"\r\n\r\nFor deepsleep this means there has to be a minimum awake time set and perhaps use rules to set the ESP into sleep again when done.\r\nTypical connection times to an accesspoint are about 3 seconds + about 1 second for DHCP.\r\n\r\nThis also resolves the issues where services my try to connect while there is a WiFi connection, but not yet an IP address set.\r\n\r\nI already noticed a lot of NTP servers from pool.ntp.org are non responsive the last few weeks, so that may still take some time, but that's another issue."},"comment":{"url":"https://api.github.com/repos/letscontrolit/ESPEasy/issues/comments/375960259","html_url":"https://github.com/letscontrolit/ESPEasy/pull/1165#issuecomment-375960259","issue_url":"https://api.github.com/repos/letscontrolit/ESPEasy/issues/1165","id":375960259,"user":{"login":"susisstrolch","id":1432955,"avatar_url":"https://avatars1.githubusercontent.com/u/1432955?v=4","gravatar_id":"","url":"https://api.github.com/users/susisstrolch","html_url":"https://github.com/susisstrolch","followers_url":"https://api.github.com/users/susisstrolch/followers","following_url":"https://api.github.com/users/susisstrolch/following{/other_user}","gists_url":"https://api.github.com/users/susisstrolch/gists{/gist_id}","starred_url":"https://api.github.com/users/susisstrolch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/susisstrolch/subscriptions","organizations_url":"https://api.github.com/users/susisstrolch/orgs","repos_url":"https://api.github.com/users/susisstrolch/repos","events_url":"https://api.github.com/users/susisstrolch/events{/privacy}","received_events_url":"https://api.github.com/users/susisstrolch/received_events","type":"User","site_admin":false},"created_at":"2018-03-25T10:32:43Z","updated_at":"2018-03-25T10:32:43Z","author_association":"NONE","body":"@TD-er I just used the test from your RAR. "}}
{"actor":{"display_login":"susisstrolch"}}