Hi,
I'm having trouble with the sl_socket function. if I close the socket and then reopen the socket again it increment sthe socket by one each time.
snippet of code below:
_i16 Status, Sd;
SlSockAddrIn_t Addr;
Addr.sin_family = SL_AF_INET;
Addr.sin_port = sl_Htons(1883);
Addr.sin_addr.s_addr = sl_Htonl(SL_IPV4_VAL(192,168,0,53));
Sd = sl_Socket(SL_AF_INET, SL_SOCK_STREAM, 0);
Status = sl_Connect(Sd, ( SlSockAddr_t *)&Addr, sizeof(SlSockAddrIn_t));
Status = sl_Send(Sd, data, i, 0 );
Status = sl_Close(Sd);
Regards,
Liam