I'd like to replicate something like this, but write the various bits as python modules entirely. If it requires a bit of C to get it going, that is fine as well.
I've connected the board to my Fedora laptop and flashed micropython onto it successfully. I'm attempting to follow this tutorial on adafruit to connect to a wifi network using
Code: Select all
esp.connect(SSID, PASSWORD)
Code: Select all
>>> import os
>>> os.uname()
(sysname='ESP8266', nodename='ESP8266', release='\x0e5\t\x1f\rP\x03\x07', version='v1.4.6-104-g7799410 on 2015-10-18', machine='ESP module with ESP8266')
>>> import esp
>>> esp.
__name__ mac getaddrinfo wifi_mode
phy_mode sleep_type deepsleep flash_id
socket MODE_11B MODE_11G MODE_11N
SLEEP_NONE SLEEP_LIGHT SLEEP_MODEM STA_MODE
AP_MODE STA_AP_MODE
>>> esp.connect
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: no such attribute
How does one connect to the wireless using the esp module and what have I done wrong? Thanks!