openm最新的wifi扩展板,连接openmv4和openmvplus后,运行下面的代码。程序报错。求解决,谢谢大家
-
Connect Example
This example shows how to connect your OpenMV Cam with a WiFi shield to the net.
import network
SSID='' # Network SSID
KEY='' # Network keyInit wlan module and connect to network
print("Trying to connect... (may take a while)...")
wlan = network.WINC()
wlan.connect(SSID, key=KEY, security=wlan.WPA_PSK)We should have a valid IP now via DHCP
print(wlan.ifconfig())
-
提示的很明显了,SSID不能是空。
SSID应该是你的路由器的Wi-Fi名称,KEY应该是你的路由器的Wi-Fi密码。