This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3235MODASF: sl_Bind gives -99 error when try to bind socket to specific address and no SL_INADDR_ANY

Part Number: CC3235MODASF

Hello.

I've writed UDP server code.

My code has to wait UDP packet from P2P - GO device (my PC).

NWP is configured as P2P - CLIENT device.

If I try to bind UDP socket with specific address (the Gateway address of my PC)

I obtain -99 errore code.

Why we have to bind to ANY addess (SL_INADDR_ANY) ?

  • Hey Mauro,

    You need to use your PC's IP address when binding the socket, not the Gateway address.

    As a side note, it is optional to bind the socket on the client side. The client only needs to know the IP address and port the server (your PC) is listening on to send data.

    Regards,

    Paul