{"id":15142166,"url":"https://github.com/noyelseth/rpi-pico-micropython-esp8266-lib","last_synced_at":"2025-10-23T19:31:12.557Z","repository":{"id":42592242,"uuid":"410520748","full_name":"noyelseth/rpi-pico-micropython-esp8266-lib","owner":"noyelseth","description":"This is a Micropython Library from Raspberry Pi Pico to communicate with ESP8266 using AT command over serial UART.","archived":false,"fork":false,"pushed_at":"2023-11-15T17:07:38.000Z","size":33,"stargazers_count":28,"open_issues_count":5,"forks_count":30,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-09-27T09:23:58.416Z","etag":null,"topics":["at-command","at-commands","circuit-python","circuitpython","esp","esp01","esp8266","esp8266-at-command","esp8266-esp-12e","esp8266-library","espressif","micropython","micropython-rpi-pico","python","raspberry-pi","raspberry-pi-pico","rpi-pico"],"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/noyelseth.png","metadata":{"files":{"readme":"README.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":"2021-09-26T10:30:27.000Z","updated_at":"2024-09-12T04:42:37.000Z","dependencies_parsed_at":"2024-09-21T15:00:30.460Z","dependency_job_id":null,"html_url":"https://github.com/noyelseth/rpi-pico-micropython-esp8266-lib","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noyelseth%2Frpi-pico-micropython-esp8266-lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noyelseth%2Frpi-pico-micropython-esp8266-lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noyelseth%2Frpi-pico-micropython-esp8266-lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noyelseth%2Frpi-pico-micropython-esp8266-lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noyelseth","download_url":"https://codeload.github.com/noyelseth/rpi-pico-micropython-esp8266-lib/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219867955,"owners_count":16555810,"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":["at-command","at-commands","circuit-python","circuitpython","esp","esp01","esp8266","esp8266-at-command","esp8266-esp-12e","esp8266-library","espressif","micropython","micropython-rpi-pico","python","raspberry-pi","raspberry-pi-pico","rpi-pico"],"created_at":"2024-09-26T09:24:10.665Z","updated_at":"2025-10-23T19:31:12.184Z","avatar_url":"https://github.com/noyelseth.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Raspberry Pi Pico Micropython ESP8266 Library\n[![GitHub version](https://img.shields.io/github/release/noyelseth/rpi-pico-micropython-esp8266-lib.svg)](lib-release)\n[![GitHub download](https://img.shields.io/github/downloads/noyelseth/rpi-pico-micropython-esp8266-lib/total.svg)](lib-release)\n[![GitHub stars](https://img.shields.io/github/stars/noyelseth/rpi-pico-micropython-esp8266-lib.svg)](lib-stars)\n[![GitHub issues](https://img.shields.io/github/issues/noyelseth/rpi-pico-micropython-esp8266-lib.svg)](lib-issues)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](lib-licence)\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/29272159/134866689-f3a34753-1583-441e-917b-6d599b8c0fc8.png\" width=\"250\"\u003e\u003cimg src=\"https://user-images.githubusercontent.com/29272159/134866581-f0d7cf42-9fc0-48bc-a859-7d74b070a3fd.png\" width=\"150\"\u003e\u003cimg src=\"https://user-images.githubusercontent.com/29272159/134868586-bd05f5e9-eaf2-4ac2-9688-7aca16165bf8.png\" width=\"350\"\u003e\n\u003c/p\u003e\n\n## Description\nThis is a Micropython Library for RaspberryPi-Pico to communicate with ESP8266 using AT command.\n\n## Hardware Connection\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/29272159/134862637-7109bc5b-ac92-4637-8ca6-b4d2fd6d9656.png\" width=\"800\"\u003e\n\u003c/p\u003e\n\n## Getting Started with Examples\nThis is a basic AT Command library for RaspberryPi-Pico, which simplifies the communication process with the ESP8266. \nThe best way to understand the library is with the example shown below, This example shows you how to make a GET/POST request using ESP8266 with the help of the RaspberryPi-Pico.\n\n### How to Use Library\n```python\nfrom machine import Pin\nfrom esp8266 import ESP8266\nimport time, sys\n\nprint(\"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\")\nprint(\"RPi-Pico MicroPython Ver:\", sys.version)\nprint(\"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\")\n\n## Create On-board Led object\nled=Pin(25,Pin.OUT)\n\n## Create an ESP8266 Object\nesp01 = ESP8266()\nesp8266_at_ver = None\n\nprint(\"StartUP\",esp01.startUP())\nprint(\"Echo-Off\",esp01.echoING())\nprint(\"\\r\\n\")\n\n'''\nPrint ESP8266 AT comand version and SDK details\n'''\nesp8266_at_ver = esp01.getVersion()\nif(esp8266_at_ver != None):\n    print(esp8266_at_ver)\n\n'''\nset the current WiFi in SoftAP+STA\n'''\nprint(\"WiFi Current Mode:\",esp01.setCurrentWiFiMode()\n  \nprint(\"\\r\\n\\r\\n\")\n\n'''\nConnect with the WiFi\n'''\nprint(\"Try to connect with the WiFi..\")\nwhile (1):\n    if \"WIFI CONNECTED\" in esp01.connectWiFi(\"ssid\",\"pwd\"):\n        print(\"ESP8266 connect with the WiFi..\")\n        break;\n    else:\n        print(\".\")\n        time.sleep(2)\n\n\nprint(\"\\r\\n\\r\\n\")\nprint(\"Now it's time to start HTTP Get/Post Operation.......\\r\\n\")\n\nwhile(1):    \n    led.toggle()\n    time.sleep(1)\n    \n    '''\n    Going to do HTTP Get Operation with www.httpbin.org/ip, It return the IP address of the connected device\n    '''\n    httpCode, httpRes = esp01.doHttpGet(\"www.httpbin.org\",\"/ip\",\"RaspberryPi-Pico\", port=80)\n    print(\"------------- www.httpbin.org/ip Get Operation Result -----------------------\")\n    print(\"HTTP Code:\",httpCode)\n    print(\"HTTP Response:\",httpRes)\n    print(\"-----------------------------------------------------------------------------\\r\\n\\r\\n\")\n    \n    \n    '''\n    Going to do HTTP Post Operation with www.httpbin.org/post\n    '''\n    post_json=\"{\\\"name\\\":\\\"Noyel\\\"}\"\n    httpCode, httpRes = esp01.doHttpPost(\"www.httpbin.org\",\"/post\",\"RPi-Pico\", \"application/json\",post_json,port=80)\n    print(\"------------- www.httpbin.org/post Post Operation Result -----------------------\")\n    print(\"HTTP Code:\",httpCode)\n    print(\"HTTP Response:\",httpRes)\n    print(\"--------------------------------------------------------------------------------\\r\\n\\r\\n\")\n```\n\n\n\n\n## Contributing\nYou are very welcome to contribute: stability bugfixes, new hardware support, or any other improvements. Please.\n[![GitHub stars](https://img.shields.io/github/stars/noyelseth/rpi-pico-micropython-esp8266-lib.svg?style=social\u0026label=Star)](lib-stars)\n[![GitHub forks](https://img.shields.io/github/forks/noyelseth/rpi-pico-micropython-esp8266-lib.svg?style=social\u0026label=Fork)](lib-network)\n\n\n### License\nThis project is released under The MIT License (MIT) © [Noyel Seth](https://github.com/noyelseth)\n\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoyelseth%2Frpi-pico-micropython-esp8266-lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoyelseth%2Frpi-pico-micropython-esp8266-lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoyelseth%2Frpi-pico-micropython-esp8266-lib/lists"}