{"id":22296782,"url":"https://github.com/webklex/esp8266autoconnect","last_synced_at":"2025-07-25T13:34:56.636Z","repository":{"id":71427843,"uuid":"146114799","full_name":"Webklex/ESP8266AutoConnect","owner":"Webklex","description":"With this library an ESP8266 can automatically connect to an open wifi network which has a working internet connection. This library should not be considered save since it is a bad thing to have your iot autoconnect to everything it can get a hold of. However I developed it for a personal use case where exactly that was required. So here we go :)","archived":false,"fork":false,"pushed_at":"2018-08-26T04:29:29.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T22:41:24.404Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Webklex.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-25T17:14:54.000Z","updated_at":"2020-09-23T15:07:09.000Z","dependencies_parsed_at":"2023-02-25T18:31:10.206Z","dependency_job_id":null,"html_url":"https://github.com/Webklex/ESP8266AutoConnect","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Webklex/ESP8266AutoConnect","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Webklex%2FESP8266AutoConnect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Webklex%2FESP8266AutoConnect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Webklex%2FESP8266AutoConnect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Webklex%2FESP8266AutoConnect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Webklex","download_url":"https://codeload.github.com/Webklex/ESP8266AutoConnect/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Webklex%2FESP8266AutoConnect/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265524907,"owners_count":23782057,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-03T17:47:39.039Z","updated_at":"2025-07-16T16:39:15.323Z","avatar_url":"https://github.com/Webklex.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ESP8266AutoConnect\n\n[![Software License][ico-license]](LICENSE.md)\n\nLet the ESP8266 auto connect to an open wifi network.\n\nWith this library an ESP8266 can automatically connect to an open wifi network which has a working internet connection.\nThis library should not be considered save since it is a bad thing to have your iot autoconnect to everything it can get a hold of. However I developed it for a personal use case where exactly that was required. So here we go :)\n\n## Usage\n\nFirst, include the library in your sketch and initialize a new instance:\n\n```arduino\n#include \u003cESP8266AutoConnect.h\u003e\n\nint LED_DISCONNECTED = 15; //D8\nint LED_CONNECTING = 13;   //D7\nint LED_CONNECTED = 12;    //D6\n#int LED_CONNECTED = 0;    //No indicator led for an online connection\n\nESP8266AutoConnect ac(LED_DISCONNECTED, LED_CONNECTING, LED_CONNECTED);\n```\n\nIf you don't want to use any indicator led just ignore them:\n```arduino\n#include \u003cESP8266AutoConnect.h\u003e\n\nESP8266AutoConnect ac;\n```\n\nNext, simply call the `ac.autoConnect()` function. It won't continue until it has established a connection.\n\n```arduino\nvoid loop() {\n    ac.autoConnect();\n    delay(1000);\n}\n```\n\nAll available methods:\n\n```arduino\nvoid ac.autoConnect();\n\nbool ac.ping(String host, int port);\n\nvoid ac.setDisconnectLed(int); //Default = 0 (unset)\nvoid ac.setConnectingLed(int); //Default = 0 (unset)\nvoid ac.setConnectedLed(int);  //Default = 0 (unset)\nvoid ac.setBlinkDelay(int);    //Default = 250\nvoid ac.setPingHost(String);   //Default = \"www.google.com\"\nvoid ac.setPingPort(int);      //Default = 443\n```\n\n## Change log\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Security\n\nIf you discover any security related issues, please email github@webklex.com instead of using the issue tracker.\n\n## Credits\n\n- [Webklex][link-author]\n- [All Contributors][link-contributors]\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\n[link-author]: https://github.com/webklex\n[link-contributors]: https://github.com/Webklex/laravel-imap/graphs/contributors#\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebklex%2Fesp8266autoconnect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebklex%2Fesp8266autoconnect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebklex%2Fesp8266autoconnect/lists"}