This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ENC28j60 as TCP Cleint

Hi everyone , i using Stm32f103 + Enc28j60 and Uip 1.0 for TCP/IP Stack . That example provide me a webserver and it worked well , now i want use it as a TCP Client , i can see some functions in uip.c can do that but no example .
I tried this code but nothing happen , someone can help me

uip_ipaddr_t ipaddr;
SPI2_Init();
InitNet();
uip_ipaddr(&ipaddr, 192,168,1,50);
uip_connect(&ipaddr, HTONS(30));
uip_send("test",4);

Thanks !

0