logo

新买的RT1062,没法使用示例程序,请老师指教。

2024-09-02 10:18
1
fsaq

新买的RT1062,没法使用示例程序,显示没有WINC

2024-09-02 10:34
1
fsaq

# DNS Example

#

# This example shows how to get the IP address for websites via DNS.

import network

import usocket

# AP info

SSID = "OPENMV" # Network SSID

KEY = "123456789" # Network key

# Init 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])

2024-09-03 20:54
I
网红小智智 星瞳科技

https://book.openmv.cc/example/14-WiFi-Shield/dns.html