sipeed / MaixPy-v1_scripts

micropython scripts for MaixPy
https://maixpy.sipeed.com
MIT License
626 stars 431 forks source link

AttributeError: 'ESP8285' object has no attribute 'scan' #8

Closed TakuroFukamizu closed 5 years ago

TakuroFukamizu commented 5 years ago

I've tried to run below script at my Sipeed MAix Dan Dock(M1w model). https://github.com/sipeed/MaixPy_scripts/blob/master/network/demo_wifi_ap_scan.py

but got the following error.

Traceback (most recent call last):
  File "<stdin>", line 36, in <module>
AttributeError: 'ESP8285' object has no attribute 'scan'

What's wrong?

Neutree commented 5 years ago

this version have no this attribute, but the 0.3.2 do

TakuroFukamizu commented 5 years ago

Dear @Neutree

It's not fixed yet. Because nic.scan() return SSID ONLY. but this code expects SSID, RSSI, and MAC address. https://github.com/sipeed/MaixPy_scripts/blob/6928fe172a77402915850a27c6f8fe04a75b8223/network/demo_wifi_ap_scan.py#L21

image