payload: {"action":"created","issue":{"url":"https://api.github.com/repos/tzapu/WiFiManager/issues/980","repository_url":"https://api.github.com/repos/tzapu/WiFiManager","labels_url":"https://api.github.com/repos/tzapu/WiFiManager/issues/980/labels{/name}","comments_url":"https://api.github.com/repos/tzapu/WiFiManager/issues/980/comments","events_url":"https://api.github.com/repos/tzapu/WiFiManager/issues/980/events","html_url":"https://github.com/tzapu/WiFiManager/issues/980","id":535364159,"node_id":"MDU6SXNzdWU1MzUzNjQxNTk=","number":980,"title":"Break; Wifimanger","user":{"login":"jelmo2","id":16858919,"node_id":"MDQ6VXNlcjE2ODU4OTE5","avatar_url":"https://avatars1.githubusercontent.com/u/16858919?v=4","gravatar_id":"","url":"https://api.github.com/users/jelmo2","html_url":"https://github.com/jelmo2","followers_url":"https://api.github.com/users/jelmo2/followers","following_url":"https://api.github.com/users/jelmo2/following{/other_user}","gists_url":"https://api.github.com/users/jelmo2/gists{/gist_id}","starred_url":"https://api.github.com/users/jelmo2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jelmo2/subscriptions","organizations_url":"https://api.github.com/users/jelmo2/orgs","repos_url":"https://api.github.com/users/jelmo2/repos","events_url":"https://api.github.com/users/jelmo2/events{/privacy}","received_events_url":"https://api.github.com/users/jelmo2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-12-09T22:01:10Z","updated_at":"2019-12-10T04:28:51Z","closed_at":null,"author_association":"NONE","body":"Master\r\nESP8266\r\nESP-12\r\nESP Core Version:\t2.4.0\r\n \r\nHi tzapu,\r\n\r\nmaybe this has already been in the forum but I couldn't find it. I am working on a project with the option to read data via the internet. now my question is that i want the entire wifi manager (wifi) to be switched off after a certain time if it is not cofigured by the user. the only thing I can find is a timeout for the config portal.\r\n\r\nin brief:\r\n\r\nI get stuck with the code if the WiFi is not set, here I want to give the user 5 minutes to configure the WiFi. after 5 minutes the device must simply execute its code without wifi.\r\n\r\nmaybe you can help me.\r\n\r\nCode:\r\nvoid setup(void) {\r\n  Serial.begin(115200);\r\n  pinMode(LED_BUILTIN, OUTPUT);\r\n  Wire.begin(5,4); // change hardware I2C pins to (5,4) (D1,D2)\r\n  int chk = DHT.read(dht);\r\n  pinMode(RELAY, OUTPUT);\r\n  digitalWrite(RELAY, 1);// Turns Relay On\r\n  digitalWrite(LED_BUILTIN, LOW);\r\n  u8g2.begin(); // init display\r\n//-------------------------------------------  \r\n//Versie firmware \r\n u8g2.clearBuffer();         // clear the internal memory  \r\n u8g2.setFont(u8g2_font_helvB08_tr);\r\n u8g2.drawStr( 0, 10, \"JDJ electronics\");\r\n u8g2.drawStr( 0, 30, \"Model: DM\");\r\n u8g2.drawStr( 0, 40, \"Firmware: v2.5\"); \r\n u8g2.drawStr( 0, 50, \"251019\"); //firmware date  \r\n u8g2.drawStr( 10, 60, \"2019\");\r\n u8g2.setCursor(0, 60);\r\n u8g2.setFont(u8g2_font_helvB08_tf);\r\n u8g2.print(char(169)); // copyright karakter\r\n u8g2.sendBuffer();          // transfer internal memory to the display \r\n delay(3000);\r\n   \r\n//Wifi setup + oled\r\n u8g2.clearBuffer();         // clear the internal memory  \r\n u8g2.setCursor(15, 36);\r\n u8g2.setFont(u8g2_font_open_iconic_www_2x_t);\r\n u8g2.print(char(81)); // WIFI icon\r\n u8g2.setFont(u8g2_font_helvB08_tr);\r\n u8g2.drawStr( 40, 32, \"Connect to\");\r\n u8g2.drawStr( 40, 45, \"JDJ-DM\");\r\n u8g2.sendBuffer();          // transfer internal memory to the display  \r\n \r\n  WiFiManager wifiManager;\r\n  wifiManager.autoConnect(\"JDJ-DM\");\r\n  wifiManager.setConfigPortalTimeout(60);\r\n    if(!wifiManager.autoConnect()) {\r\n    Serial.println(\"failed to connect and hit timeout\");\r\n    delay(3000);\r\n    //reset and try again, or maybe put it to deep sleep\r\n    ESP.reset();   \r\n  }\r\n  \r\n  Serial.println(\"Connected.\");\r\n  digitalWrite(LED_BUILTIN, HIGH);\r\n  server.begin();\r\n\r\n server.on(\"/\", handle_OnConnect);\r\n server.onNotFound(handle_NotFound);\r\n\r\n server.begin();\r\n Serial.println(\"HTTP server started\");\r\n Serial.println(WiFi.localIP());\r\n \r\n//Connected Succes \r\n u8g2.clearBuffer();         // clear the internal memory  \r\n u8g2.setCursor(15, 36);\r\n u8g2.setFont(u8g2_font_open_iconic_www_2x_t);\r\n u8g2.print(char(81)); // WIFI icon\r\n u8g2.setFont(u8g2_font_helvB08_tr);\r\n u8g2.drawStr( 40, 32, \"Connected\");\r\n u8g2.setCursor( 40, 45);\r\n u8g2.print(WiFi.localIP());\r\n u8g2.sendBuffer();          // transfer internal memory to the display \r\n delay(1000); \r\n \r\n//Check up\r\n u8g2.clearBuffer();         // clear the internal memory  \r\n u8g2.setCursor(15, 36);\r\n u8g2.setFont(u8g2_font_open_iconic_embedded_2x_t);\r\n u8g2.print(char(66)); // tandwiel\r\n u8g2.setFont(u8g2_font_helvB08_tr);\r\n u8g2.drawStr( 40, 32, \"DM-CHECK\");\r\n u8g2.drawStr( 40, 45, \"WAIT...\");\r\n u8g2.sendBuffer();          // transfer internal memory to the display  \r\n delay(1000);\r\n\r\n //Volt check up\r\n u8g2.clearBuffer();         // clear the internal memory  \r\n u8g2.setCursor(15, 36);\r\n u8g2.setFont(u8g2_font_open_iconic_embedded_2x_t);\r\n u8g2.print(char(73)); // tandwiel\r\n u8g2.setFont(u8g2_font_helvB08_tr);\r\n u8g2.drawStr( 40, 32, \"VOLTAGE\");\r\n u8g2.drawStr( 40, 45, \"CHECK...\");\r\n u8g2.sendBuffer();          // transfer internal memory to the display  \r\n delay(1000);\r\n\r\n//Check compleet\r\n u8g2.clearBuffer();         // clear the internal memory \r\n u8g2.setCursor(45, 45);\r\n u8g2.setFont(u8g2_font_open_iconic_check_4x_t);\r\n u8g2.print(char(64)); // vinkje iccon\r\n u8g2.sendBuffer();\r\n delay(1000);\r\n\r\n\r\n```\r\nYours sincerly,\r\n\r\nJelmer de Jong\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/tzapu/WiFiManager/issues/comments/563766616","html_url":"https://github.com/tzapu/WiFiManager/issues/980#issuecomment-563766616","issue_url":"https://api.github.com/repos/tzapu/WiFiManager/issues/980","id":563766616,"node_id":"MDEyOklzc3VlQ29tbWVudDU2Mzc2NjYxNg==","user":{"login":"tablatronix","id":807787,"node_id":"MDQ6VXNlcjgwNzc4Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/807787?v=4","gravatar_id":"","url":"https://api.github.com/users/tablatronix","html_url":"https://github.com/tablatronix","followers_url":"https://api.github.com/users/tablatronix/followers","following_url":"https://api.github.com/users/tablatronix/following{/other_user}","gists_url":"https://api.github.com/users/tablatronix/gists{/gist_id}","starred_url":"https://api.github.com/users/tablatronix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tablatronix/subscriptions","organizations_url":"https://api.github.com/users/tablatronix/orgs","repos_url":"https://api.github.com/users/tablatronix/repos","events_url":"https://api.github.com/users/tablatronix/events{/privacy}","received_events_url":"https://api.github.com/users/tablatronix/received_events","type":"User","site_admin":false},"created_at":"2019-12-10T04:28:51Z","updated_at":"2019-12-10T04:28:51Z","author_association":"COLLABORATOR","body":"setConfigPortalTimeout"}}
other: {"actor":{"display_login":"tablatronix"}}