{"id":19484397,"url":"https://github.com/funnygeeker/micropython-easynetwork","last_synced_at":"2026-04-29T21:02:51.988Z","repository":{"id":117604672,"uuid":"610269903","full_name":"funnygeeker/micropython-easynetwork","owner":"funnygeeker","description":"Simplified wireless network management for Micropython.  简化Micropython的无线网络管理","archived":false,"fork":false,"pushed_at":"2024-03-23T14:35:37.000Z","size":19,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-25T18:31:52.680Z","etag":null,"topics":["ap","client","esp32","esp8266","library","micropython","network","wifi","wlan"],"latest_commit_sha":null,"homepage":"","language":"Python","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/funnygeeker.png","metadata":{"files":{"readme":"README.ZH-CN.md","changelog":null,"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":"2023-03-06T12:45:47.000Z","updated_at":"2024-07-22T01:03:59.000Z","dependencies_parsed_at":"2024-03-23T15:32:29.094Z","dependency_job_id":"a91b9187-bd98-4c70-83f6-6e5b50dc08aa","html_url":"https://github.com/funnygeeker/micropython-easynetwork","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/funnygeeker/micropython-easynetwork","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funnygeeker%2Fmicropython-easynetwork","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funnygeeker%2Fmicropython-easynetwork/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funnygeeker%2Fmicropython-easynetwork/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funnygeeker%2Fmicropython-easynetwork/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/funnygeeker","download_url":"https://codeload.github.com/funnygeeker/micropython-easynetwork/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funnygeeker%2Fmicropython-easynetwork/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32443576,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T20:22:27.477Z","status":"ssl_error","status_checked_at":"2026-04-29T20:22:26.507Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["ap","client","esp32","esp8266","library","micropython","network","wifi","wlan"],"created_at":"2024-11-10T20:21:19.248Z","updated_at":"2026-04-29T21:02:51.969Z","avatar_url":"https://github.com/funnygeeker.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[English (英语)](./README.md)\n# micropython-easynetwork\n更简单地接入和管理 `micropython` 的 `WLAN` 网络\n\n![EasyNetwork](./EasyNetwork_256px.png)\n### 说明\n基于原版 `network` 简化了部分繁琐的操作，比如：\n- 查询原版文档有些不方便，不过，这些文档都被整理到了代码注释\n- 部分功能使用前需要 `active(True)`，但是现在只需要直接执行即可，程序会自动判断\n- 作为 `Client`：在已经连接 `WLAN` 的情况下，如果直接连接其他的 `WLAN` 会报错，现在，你只需要直接 `connect('ssid','password')`切换网络即可\n- 作为 `AP`：使用加密 `ssid`，则必须先设置 `key` 再设置 `security`。现在，你只需要直接设置 `ssid` 和 `key`。\n\n### 固件版本要求\n- `micropython 1.20 +`\n\n### 使用示例\n```python\n# 示例：创建 AP #\nfrom lib.easynetwork import AP\n\n# 创建AP\nap = AP()\nap.config(ssid='ssid', key='password')  # SSID 为 WIFI 名称，key 为密码，不填写密码则为开放网络，填写自动设置为加密网络\nap.config(key='password2')  # 修改密码\nap.config(key='')  # 禁用密码\nap.active(True)  # 启用AP\nap.active(False)  # 关闭AP\n\n# 示例：连接网络 #\nfrom lib.easynetwork import Client\nclient = Client()\n\n# 扫描无线网络（此处为示例，实际连接时按需使用）\nprint(client.scan())\n\n# [(b'QWERTY', b'\\xfc\\xa0Z\\x03\\r\\xf6', 6, -29, 4, False), (b'UIOP_2G', b'\\x94\\x83\\xc4\"(\\xf5', 6, -30, 3, False)]\nclient.connect('ssid', 'password')  # 开放网络无需填写密码参数，或者密码为空\n\n# 检查网络是否已连接\nprint(client.isconnected())\n# True\n\n# 断开网络\nclient.disconnect()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunnygeeker%2Fmicropython-easynetwork","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffunnygeeker%2Fmicropython-easynetwork","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunnygeeker%2Fmicropython-easynetwork/lists"}