• PTH's avatar
    zephyr/modusocket: Fix parameter in calls to net_context_get_XXX(). · 5cb91afb
    PTH authored
    The following simple usocket example throws an error EINVAL on connect
    
        import usocket
        s = usocket.socket()
        s.connect(usocket.getaddrinfo('www.micropython.org', 80)[0][-1])
    
        Traceback (most recent call last):
          File "<stdin>", line 1, in <module>
        OSError: [Errno 22] EINVAL
    
    Fixing the context parameter in calls of net_context_get_family() and
    net_context_get_type(), the connect works fine.
    
    Tested on a nucleo_h743zi board.
    5cb91afb
modusocket.c 15 KB