{"action":"created","issue":{"url":"https://api.github.com/repos/tzapu/WiFiManager/issues/703","repository_url":"https://api.github.com/repos/tzapu/WiFiManager","labels_url":"https://api.github.com/repos/tzapu/WiFiManager/issues/703/labels{/name}","comments_url":"https://api.github.com/repos/tzapu/WiFiManager/issues/703/comments","events_url":"https://api.github.com/repos/tzapu/WiFiManager/issues/703/events","html_url":"https://github.com/tzapu/WiFiManager/issues/703","id":351654627,"node_id":"MDU6SXNzdWUzNTE2NTQ2Mjc=","number":703,"title":"Reset or power off requires additional reset to connect","user":{"login":"nhlives","id":17681156,"node_id":"MDQ6VXNlcjE3NjgxMTU2","avatar_url":"https://avatars2.githubusercontent.com/u/17681156?v=4","gravatar_id":"","url":"https://api.github.com/users/nhlives","html_url":"https://github.com/nhlives","followers_url":"https://api.github.com/users/nhlives/followers","following_url":"https://api.github.com/users/nhlives/following{/other_user}","gists_url":"https://api.github.com/users/nhlives/gists{/gist_id}","starred_url":"https://api.github.com/users/nhlives/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhlives/subscriptions","organizations_url":"https://api.github.com/users/nhlives/orgs","repos_url":"https://api.github.com/users/nhlives/repos","events_url":"https://api.github.com/users/nhlives/events{/privacy}","received_events_url":"https://api.github.com/users/nhlives/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2018-08-17T16:15:12Z","updated_at":"2018-08-17T20:44:06Z","closed_at":null,"author_association":"NONE","body":"\r\nWiFimanager  Release: Version 0.14.0 using the Arduino IDE Library Manager\r\n\r\n#include <ArduinoJson.h>\r\n#include <Arduino.h>\r\n#include <ESP8266WiFi.h>\r\n#include <ESP8266HTTPClient.h>\r\n#include <ESP8266httpUpdate.h>\r\n#include <ESP.h>\r\n#include <DNSServer.h>\r\n#include <ESP8266WebServer.h>\r\n#include \"WiFiManager.h\"\r\n\r\nHardware:\t        ESP-12E\r\nCore Version:      \t2.4.2\r\n\r\nProblem description\r\nMainly a question for now.  On a power off or reset, the ESP requires an additional reset or power off/power on to connect.  After a reset/power off, the sketch goes into the portal mode after failing to connect with a WM: 4.  It doesn't matter if I have it connected to the USB or not.  In a normal production mode, a power off/on would go through this cycle requirement.  Even using the portal after the first reset will not clear the issue.  Only the second reset / power off/on will connect.\r\n\r\nI have implemented the portal timeout wifiManager.setConfigPortalTimeout(120); and the ESP.reset(); procedure which fixes the problem.  I find this a bit of a kluge though.  Is this expected behavior or should I try something else for a recovery?\r\n\r\nLog:\r\n*WM: \r\n*WM: \r\n*WM: AutoConnect\r\n*WM: Connecting as wifi client...\r\n*WM: Using last saved values, should be faster\r\n*WM: Connection result: \r\n*WM: 4\r\nEntered config mode\r\n192.168.4.1\r\nLimitedMobility\r\n*WM: \r\n*WM: Configuring access point... \r\n*WM: LimitedMobility\r\n*WM: AP IP address: \r\n*WM: 192.168.4.1\r\n*WM: HTTP server started\r\nfailed to connect and hit timeout\r\n\r\n ets Jan  8 2013,rst cause:2, boot mode:(3,7)\r\n\r\nload 0x4010f000, len 1384, room 16 \r\ntail 8\r\nchksum 0x2d\r\ncsum 0x2d\r\nvbb28d4a3\r\n~ld\r\n*WM: Adding parameter\r\n*WM: \r\n*WM: \r\n*WM: AutoConnect\r\n*WM: Connecting as wifi client...\r\n*WM: Using last saved values, should be faster\r\n*WM: Connection result: \r\n*WM: 3\r\n*WM: IP Address:\r\n*WM: 192.168.1.73\r\n\r\n\r\n\r\nModule:  \t\t\tNodeMcu \r\n"},"comment":{"url":"https://api.github.com/repos/tzapu/WiFiManager/issues/comments/413983162","html_url":"https://github.com/tzapu/WiFiManager/issues/703#issuecomment-413983162","issue_url":"https://api.github.com/repos/tzapu/WiFiManager/issues/703","id":413983162,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzk4MzE2Mg==","user":{"login":"nhlives","id":17681156,"node_id":"MDQ6VXNlcjE3NjgxMTU2","avatar_url":"https://avatars2.githubusercontent.com/u/17681156?v=4","gravatar_id":"","url":"https://api.github.com/users/nhlives","html_url":"https://github.com/nhlives","followers_url":"https://api.github.com/users/nhlives/followers","following_url":"https://api.github.com/users/nhlives/following{/other_user}","gists_url":"https://api.github.com/users/nhlives/gists{/gist_id}","starred_url":"https://api.github.com/users/nhlives/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhlives/subscriptions","organizations_url":"https://api.github.com/users/nhlives/orgs","repos_url":"https://api.github.com/users/nhlives/repos","events_url":"https://api.github.com/users/nhlives/events{/privacy}","received_events_url":"https://api.github.com/users/nhlives/received_events","type":"User","site_admin":false},"created_at":"2018-08-17T20:44:06Z","updated_at":"2018-08-17T20:44:06Z","author_association":"NONE","body":"\"We dont read anything we just call begin and the esp does it.\"\r\nGot it :-)\r\n\r\nI'll play around with connecting myself to see if that changes the behavior.  Thanks for your help.  The sketch I have now will recover if necessary.\r\n\r\n"}}
{"actor":{"display_login":"nhlives"}}