esp8266.py
ESP8266 python library, a wrapper for AT commands (Hayes command set) using UART serial. Could be running on PC/raspberry pi easily.
Dependency
- python2.7
- pySerial
Hardware wiring (Connect ESP8266-01 to RPI)
RX -> TX VCC -> 3.3v
GPIO0 RST
GPIO2 CH_PD -> 3.3v
GND -> ground TX -> RX
Usage
# initialize
# After initialization you could use the default password '11111111' to connect
# to wifi 'esp8266.py' and connect port 8080 on 192.168.4.1 through telnet/nc.
from esp8266 import ESP8266
esp01 = ESP8266(port="/dev/ttyAMA0", baudrate=115200)
# response on data receiving
@esp01.on_data
def on_data(data, link_id):
print '@@@@@@ data arrived:'
print 'link id:', link_id
print data
esp01.send("pong! \n", link_id)
# send data
esp01.send("hello world \n", '0')
TODO
- WSGI api
Metadata
Release files for esp8266.py 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| esp8266.py-0.0.3.tar.gz | 2.9 kB | Without provenance | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| esp8266.py-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
| esp8266.py-0.0.3-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 9.3 kB
Release files / esp8266.py-0.0.3.tar.gz
| Download URL | esp8266.py-0.0.3.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
43b3fac91ad21b4b2c0e66306d440f54808d73f299c9ab2c63a73b0d5b8bccd2
|
|
BLAKE2b-256 checksum How to use checksums |
41f3545104f007e5fe8e4c4efd1139387713f373307f794dddc4f96c85500f23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / esp8266.py-0.0.3-py3-none-any.whl
| Download URL | esp8266.py-0.0.3-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
99e4f888eb4b4916009f7d26e21ac23b6208311e31ebcad50e2a6b4934deda1f
|
|
BLAKE2b-256 checksum How to use checksums |
f78d4df671b7165f0ddda7e668a37d9ccc5821b02b44942a5f4ed5b01aca0c35
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / esp8266.py-0.0.3-py2-none-any.whl
| Download URL | esp8266.py-0.0.3-py2-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
3d22c1bd18367f53b0a0a70d8b1f35b78192e6deaa09a95eb8fc7cb2f501ada4
|
|
BLAKE2b-256 checksum How to use checksums |
d9c52b893d3c2b2e51da2c885adb1de497f103f57779cc7098ec1522b0a68e57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for esp8266.py 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.