{"action":"created","issue":{"url":"https://api.github.com/repos/tzapu/WiFiManager/issues/104","repository_url":"https://api.github.com/repos/tzapu/WiFiManager","labels_url":"https://api.github.com/repos/tzapu/WiFiManager/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/tzapu/WiFiManager/issues/104/comments","events_url":"https://api.github.com/repos/tzapu/WiFiManager/issues/104/events","html_url":"https://github.com/tzapu/WiFiManager/issues/104","id":133958137,"number":104,"title":"Working while not connected to Wifi","user":{"login":"elieyal","id":17270807,"avatar_url":"https://avatars.githubusercontent.com/u/17270807?v=3","gravatar_id":"","url":"https://api.github.com/users/elieyal","html_url":"https://github.com/elieyal","followers_url":"https://api.github.com/users/elieyal/followers","following_url":"https://api.github.com/users/elieyal/following{/other_user}","gists_url":"https://api.github.com/users/elieyal/gists{/gist_id}","starred_url":"https://api.github.com/users/elieyal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elieyal/subscriptions","organizations_url":"https://api.github.com/users/elieyal/orgs","repos_url":"https://api.github.com/users/elieyal/repos","events_url":"https://api.github.com/users/elieyal/events{/privacy}","received_events_url":"https://api.github.com/users/elieyal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-16T11:38:57Z","updated_at":"2016-02-16T12:18:37Z","closed_at":null,"body":"@tzapu, first, same as everyone, I think this library is amazing....\r\nI have some flows I'm trying to do, maybe you can help me think on how to integrate this library into my flows:\r\n1. The first time installation of the board in a new place where there is a new WiFi network\r\n2. Letting the board continue to work as usual (inputs and outputs) while it's not yet connected to a network\r\n3. Working as usual while WiFi is lost and resuming connection when the WiFi is again available\r\n4. Changing the WiFi network on demand.\r\n\r\nthe idea behind these flows is very simple:\r\n1. Configure and test\r\n2. Move to a new place to do the actual work - reconfigure on site\r\n3. make sure it's working no matter what - and stable.\r\n4. Resume connectivity if lost.\r\n\r\nNow the first flow is simple from your examples, but how can the board continue to work (with my board, gpio0 is an input button and gpio2 is output according to the button) if there is no WiFi configured?\r\n\r\nWhat will happen if the WiFi is lost at some point? I have this in my current board:\r\n//set IP if not correct\r\n    IPAddress ipadd = WiFi.localIP();\r\n    if( ipadd!= ip) {\r\n        WiFi.config(ip, gateway, subnet);\r\n    }\r\n    // Connect to WiFi network\r\n    WiFi.begin(ssid, password);\r\n    counter = 0;\r\n    while (WiFi.status() != WL_CONNECTED) {\r\n        Serial.print(\".\");\r\n        override_check();\r\n        delay(250);\r\n        \r\n    }\r\n    Serial.println(\"\");\r\n    Serial.println(\"WiFi connected\");\r\n    // Start the server\r\n    server.begin()\r\n\r\nUnfortunately, in your example you are using the ESP8266WebServer that I'm not so fund of, so i cant use your example that much (why use it when ESP8266WiFi is much more simpler?).\r\n\r\nAnd last, you wrote in the documentation NOT to use both on demand and the autoConnect. so my question is how do I setup my board in one place and than move it to another place to work? how can I change the settings on demand but after the first initialization?\r\n\r\nThank you so much for the help!!"},"comment":{"url":"https://api.github.com/repos/tzapu/WiFiManager/issues/comments/184661201","html_url":"https://github.com/tzapu/WiFiManager/issues/104#issuecomment-184661201","issue_url":"https://api.github.com/repos/tzapu/WiFiManager/issues/104","id":184661201,"user":{"login":"pieman64","id":8315296,"avatar_url":"https://avatars.githubusercontent.com/u/8315296?v=3","gravatar_id":"","url":"https://api.github.com/users/pieman64","html_url":"https://github.com/pieman64","followers_url":"https://api.github.com/users/pieman64/followers","following_url":"https://api.github.com/users/pieman64/following{/other_user}","gists_url":"https://api.github.com/users/pieman64/gists{/gist_id}","starred_url":"https://api.github.com/users/pieman64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pieman64/subscriptions","organizations_url":"https://api.github.com/users/pieman64/orgs","repos_url":"https://api.github.com/users/pieman64/repos","events_url":"https://api.github.com/users/pieman64/events{/privacy}","received_events_url":"https://api.github.com/users/pieman64/received_events","type":"User","site_admin":false},"created_at":"2016-02-16T12:18:37Z","updated_at":"2016-02-16T12:18:37Z","body":"@elieyal when you move to a new place WiFiManager will automatically take care of things for you i.e. the SSID and pwd of the AP will not be stored in your ESP so it will bring up the autoConnect for you to configure the new location."}}