I'm completely new to the hole MicroPython on the ESP8266 thing.
I have found this instructions from Adafruit.
First i flashed my ESP with the pre compiled firmware from adafruit to see some LEDs blinking and hey: It Works.
Second i wanted to connected to my wifi AP. No Problems at all.
Then i wanted to run my own python scripts. So i installed the ESP SDK. Cloned the MicroPython Repository, edit the main.py script in "micropython/esp8266/scripts", compiled the MicroPython Firmware and flashed it.
No Problems at all.
I connected to the Serial Port, reset the ESP Modul and see the following message:
So i looked in my script and the corresponding line:Traceback (most recent call last):
File "", line 5, in <module>
AttributeError: no such attribute
Code: Select all
esp.connect("myap", "mypasswd")
Adafruit Firmware: v. 1.4.2-99
My Firmware: v. 1.5.2-71
My Firmware is missing the connect, disconnect, scan and status functions in the esp module.
My question is now: How can i connect to a AP without the right functions?