setsockopt function OSError:[Errno 22] EINVAL #13225
-
|
I had rebuild the firmware from the Micropython v1.22 version, when used the socket setsockopt function ,shows: used w5500 for ethernet commuication chipuse udp protocolfrom machine import SPI, Pin gc.collect() from InitConfig import config log = logging.MiniLog("Ethernet", level = logging.DEBUG) alloc_emergency_exception_buf(100) DEBUG = config.get('DEBUG', False) version = "1.0" class Ethernet(): class Udp(): class Frame(object): if name == 'main': ` |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
Beta Was this translation helpful? Give feedback.
Also
SO_REUSEADDRneeds to be set before bind() to actually work.