Socket 编程出现OSError:no available NIC问题?
-
import sensor, image, time, network, usocket, sys, socket, usocket
HOST = '192.168.0.201' # Use first available interface
PORT = 8080 # Arbitrary non-privileged portReset sensor
sensor.reset()
Set sensor settings
sensor.set_contrast(1)
sensor.set_brightness(1)
sensor.set_saturation(1)
sensor.set_gainceiling(16)
sensor.set_framesize(sensor.QQVGA)
sensor.set_pixformat(sensor.GRAYSCALE)s=usocket.socket(socket.AF_INET,socket.SOCK_STREAM) #定义socket类型,网络通信,TCP
s.connect((HOST,PORT))
程序运行到s.connect((HOST,PORT)) 出现OSError:no available NIC,请问这问题该怎么解决呢?
-
不清楚,帮顶