新买的RT1062,没法使用示例程序,请老师指教。
-
新买的RT1062,没法使用示例程序,显示没有WINC
-
DNS Example
This example shows how to get the IP address for websites via DNS.
import network
import usocketAP info
SSID = "OPENMV" # Network SSID
KEY = "123456789" # 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())
print(usocket.getaddrinfo("www.google.com", 80)[0][4])
-