socket cannot listen for connections: [Errno 95] EOPNOTSUPP

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
alikerin
Posts: 1
Joined: Wed Feb 13, 2019 6:09 am

socket cannot listen for connections: [Errno 95] EOPNOTSUPP

Post by alikerin » Wed Feb 13, 2019 6:16 am

I am trying to create a socket connection but I keep getting OSError: [Errno 95] EOPNOTSUPP whenever I execute self.socket.listen(1)

self.access_point = network.WLAN(network.AP_IF)
self.access_point.active(True)
self.access_point.config(essid='lead_vehicle', password='lead_vehicle')
self.socket = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
#get the ip address of the lead vehicle
self.ap_ip = self.access_point.ifconfig()[0]
self.port = 800

#Create a websocket server and bind the lead vehicle address to it
print("...creating socket server")
self.socket.bind((self.ap_ip, self.port))
self.socket.listen(1)

I hope someone can help me out

Post Reply